resolve linter issues

This commit is contained in:
David Christofas
2021-02-25 14:45:19 +01:00
parent 0802e8aac3
commit ee161b2359
6 changed files with 23 additions and 6 deletions
+3 -1
View File
@@ -121,7 +121,9 @@ func (p Web) Config(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
w.Write(payload)
if _, err := w.Write(payload); err != nil {
p.logger.Error().Err(err).Msg("could not write config response")
}
}
// Static simply serves all static files.