Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Aug 16, 2024
1 parent f47e593 commit 535affe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handlers/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package handlers

import (
"encoding/json"
"io"
"net/http"

"github.com/julienschmidt/httprouter"
Expand All @@ -27,7 +26,7 @@ func (d *CatalystAPIHandlersCollection) Healthcheck() httprouter.Handle {
b = []byte(`{"status": "marshalling status failed"}`)
}

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

0 comments on commit 535affe

Please sign in to comment.