From 0e69abba2e39a68c858b3ae29af5a04e5766f507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Leszko?= Date: Mon, 19 Aug 2024 14:28:10 +0200 Subject: [PATCH] Fix io.Writer linter check --- handlers/healthcheck.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/healthcheck.go b/handlers/healthcheck.go index 57d57d179..8a25526a2 100644 --- a/handlers/healthcheck.go +++ b/handlers/healthcheck.go @@ -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) } }