Skip to content

Commit

Permalink
Fix io.Writer linter check
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Aug 19, 2024
1 parent 450abaf commit 0e69abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (d *CatalystAPIHandlersCollection) Healthcheck() httprouter.Handle {
b = []byte(`{"status": "marshalling status failed"}`)
}

if _, err := io.WriteString(w, string(b)); err != nil {
if _, err := io.Writer.Write(w, b); err != nil {
log.LogNoRequestID("Failed to write HTTP response for " + req.URL.RawPath)
}
}
Expand Down

0 comments on commit 0e69abb

Please sign in to comment.