From 535affed7e61990838834c483344224252369709 Mon Sep 17 00:00:00 2001 From: Max Holland Date: Fri, 16 Aug 2024 11:14:26 +0100 Subject: [PATCH] fix lint error --- handlers/healthcheck.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handlers/healthcheck.go b/handlers/healthcheck.go index 57d57d179..4dd569ad0 100644 --- a/handlers/healthcheck.go +++ b/handlers/healthcheck.go @@ -2,7 +2,6 @@ package handlers import ( "encoding/json" - "io" "net/http" "github.com/julienschmidt/httprouter" @@ -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) } }