Replace vet with golangci lint govet (#4277)

Drop go vet in favor of golangci-lint govet check.

Fix golangci-lint warnings.

Upgrade golangci-lint.
This commit is contained in:
Alessio Treglia
2019-05-06 17:50:05 +01:00
committed by GitHub
parent 5060187d3d
commit 06f7b2198a
12 changed files with 21 additions and 20 deletions
-5
View File
@@ -91,11 +91,6 @@ func NodeSyncingRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {
}
syncing := status.SyncInfo.CatchingUp
if err != nil {
rest.WriteErrorResponse(w, http.StatusInternalServerError, err.Error())
return
}
if _, err := w.Write([]byte(strconv.FormatBool(syncing))); err != nil {
log.Printf("could not write response: %v", err)
}