Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

chore(lint): silence linter warnings

Gabe Kangas5faf03096c33
diff --git a/controllers/admin/chat.go b/controllers/admin/chat.go
index bfb44ad970..6c68b6dd4f 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 e8f2c7649a..3d2f0caae1 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
}