resolve linter issues
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user