go vet fixes
This commit is contained in:
parent
0424c9ab02
commit
114b68f41b
|
@ -98,7 +98,6 @@ func CountLabel(s string) (labels int) {
|
|||
return
|
||||
}
|
||||
}
|
||||
panic("dns: not reached")
|
||||
}
|
||||
|
||||
// Split splits a name s into its label indexes.
|
||||
|
@ -119,7 +118,6 @@ func Split(s string) []int {
|
|||
}
|
||||
idx = append(idx, off)
|
||||
}
|
||||
panic("dns: not reached")
|
||||
}
|
||||
|
||||
// NextLabel returns the index of the start of the next label in the
|
||||
|
|
|
@ -456,7 +456,6 @@ func (srv *Server) serveTCP(l *net.TCPListener) error {
|
|||
srv.wgTCP.Add(1)
|
||||
go srv.serve(rw.RemoteAddr(), handler, m, nil, nil, rw)
|
||||
}
|
||||
panic("dns: not reached")
|
||||
}
|
||||
|
||||
// serveUDP starts a UDP listener for the server.
|
||||
|
@ -492,7 +491,6 @@ func (srv *Server) serveUDP(l *net.UDPConn) error {
|
|||
srv.wgUDP.Add(1)
|
||||
go srv.serve(s.RemoteAddr(), handler, m, l, s, nil)
|
||||
}
|
||||
panic("dns: not reached")
|
||||
}
|
||||
|
||||
// Serve a new connection.
|
||||
|
|
Loading…
Reference in New Issue