Lint-fix: errcheck not found on local run(?)

This commit is contained in:
Calle Pettersson
2018-10-05 08:01:02 +02:00
committed by Calle Pettersson
parent a171401f57
commit 4c69ed1610

View File

@@ -263,7 +263,10 @@ func main() {
func healthCheck(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
fmt.Fprintln(w, `{"status":"ok"}`)
_, err := fmt.Fprintln(w, `{"status":"ok"}`)
if err != nil {
log.Debugf("Failed to write to stream: %v", err)
}
}
func keys(m map[string]collector.Collector) []string {