Browse Source

chore(lint): silence linter warnings

pull/3380/head
Gabe Kangas 2 years ago
parent
commit
56eb2a4785
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 1
      controllers/admin/chat.go
  2. 1
      controllers/chat.go

1
controllers/admin/chat.go

@ -31,6 +31,7 @@ func UpdateMessageVisibility(w http.ResponseWriter, r *http.Request) { @@ -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
}

1
controllers/chat.go

@ -54,6 +54,7 @@ func RegisterAnonymousChatUser(w http.ResponseWriter, r *http.Request) { @@ -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
}

Loading…
Cancel
Save