go vet fixes

This commit is contained in:
Miek Gieben 2015-08-23 07:24:08 +01:00
parent 0424c9ab02
commit 114b68f41b
3 changed files with 0 additions and 5 deletions

View File

@ -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

View File

@ -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.

1
xfr.go
View File

@ -91,7 +91,6 @@ func (t *Transfer) inAxfr(id uint16, c chan *Envelope) {
c <- &Envelope{in.Answer, nil}
}
}
panic("dns: not reached")
}
func (t *Transfer) inIxfr(id uint16, c chan *Envelope) {