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 }