cleanup: remove redundant return statement (#3297)

Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
This commit is contained in:
Guangming Wang
2019-09-23 21:40:14 +08:00
committed by Miek Gieben
parent 004c5fca9d
commit 081e45afa3
15 changed files with 10 additions and 18 deletions

View File

@@ -302,7 +302,6 @@ func (s *Server) OnStartupComplete() {
if out != "" {
fmt.Print(out)
}
return
}
// Tracer returns the tracer in the server if defined.

View File

@@ -93,7 +93,6 @@ func (s *ServergRPC) OnStartupComplete() {
if out != "" {
fmt.Print(out)
}
return
}
// Stop stops the server. It blocks until the server is
@@ -165,8 +164,8 @@ func (r *gRPCresponse) Write(b []byte) (int, error) {
// These methods implement the dns.ResponseWriter interface from Go DNS.
func (r *gRPCresponse) Close() error { return nil }
func (r *gRPCresponse) TsigStatus() error { return nil }
func (r *gRPCresponse) TsigTimersOnly(b bool) { return }
func (r *gRPCresponse) Hijack() { return }
func (r *gRPCresponse) TsigTimersOnly(b bool) {}
func (r *gRPCresponse) Hijack() {}
func (r *gRPCresponse) LocalAddr() net.Addr { return r.localAddr }
func (r *gRPCresponse) RemoteAddr() net.Addr { return r.remoteAddr }
func (r *gRPCresponse) WriteMsg(m *dns.Msg) error { r.Msg = m; return nil }

View File

@@ -82,7 +82,6 @@ func (s *ServerHTTPS) OnStartupComplete() {
if out != "" {
fmt.Print(out)
}
return
}
// Stop stops the server. It blocks until the server is totally stopped.

View File

@@ -78,5 +78,4 @@ func (s *ServerTLS) OnStartupComplete() {
if out != "" {
fmt.Print(out)
}
return
}