Fixed ineffassign, unreachable code

This commit is contained in:
Vadim 2018-05-13 01:51:35 +03:00
parent c14870c5ac
commit 5208d91b79
2 changed files with 1 additions and 3 deletions

View File

@ -153,7 +153,7 @@ func runWeb(ctx *cli.Context) error {
log.Fatal(4, "Failed to bind %s", listenAddr, err)
}
defer listener.Close()
err = fcgi.Serve(listener, context2.ClearHandler(m))
fcgi.Serve(listener, context2.ClearHandler(m))
case setting.UnixSocket:
if err := os.Remove(listenAddr); err != nil && !os.IsNotExist(err) {
log.Fatal(4, "Failed to remove unix socket directory %s: %v", listenAddr, err)

View File

@ -71,6 +71,4 @@ func (runner) Execute(args []string, r <-chan svc.ChangeRequest, changes chan<-
return false, 0
}
}
return false, 0
}