From 56eb2a4785a1b6d3bf75d3522461d457aea41639 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 21 Oct 2023 09:46:45 -0700 Subject: [PATCH] chore(lint): silence linter warnings --- controllers/admin/chat.go | 1 + controllers/chat.go | 1 + 2 files changed, 2 insertions(+) diff --git a/controllers/admin/chat.go b/controllers/admin/chat.go index bfb44ad97..6c68b6dd4 100644 --- a/controllers/admin/chat.go +++ b/controllers/admin/chat.go @@ -31,6 +31,7 @@ func UpdateMessageVisibility(w http.ResponseWriter, r *http.Request) { } if r.Method != controllers.POST { + // nolint:goconst controllers.WriteSimpleResponse(w, false, r.Method+" not supported") return } diff --git a/controllers/chat.go b/controllers/chat.go index e8f2c7649..3d2f0caae 100644 --- a/controllers/chat.go +++ b/controllers/chat.go @@ -54,6 +54,7 @@ func RegisterAnonymousChatUser(w http.ResponseWriter, r *http.Request) { } if r.Method != http.MethodPost { + // nolint:goconst WriteSimpleResponse(w, false, r.Method+" not supported") return }