fixed linter warnings

This commit is contained in:
Gani Georgiev committed 2026-09-02 12:25:01 +03:00
1 parent 6d9ca9bf9d
commit fed5ab9a13
4 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ const jsonFieldsParam = "fields"
// it should result in a JSON response like: `{"a":1, "b": 2}`.
//
// Note that invalid UTF8 characters are mangled for compatibility
// with earlier versions and to prevent unnecessery causing a response error.
// with earlier versions and to prevent unnecessary causing a response error.
func (e *Event) JSON(status int, data any) error {
e.setResponseHeaderIfEmpty(headerContentType, "application/json")
e.Response.WriteHeader(status)