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