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

@@ -43,7 +43,6 @@ func (h *health) OnStartup() error {
// We're always healthy.
w.WriteHeader(http.StatusOK)
io.WriteString(w, http.StatusText(http.StatusOK))
return
})
go func() { http.Serve(h.ln, h.mux) }()