fixed linter warnings

This commit is contained in:
Gani Georgiev
2026-09-02 12:25:01 +03:00
parent 6d9ca9bf9d
commit fed5ab9a13
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func Pick(data any, rawFields string) (any, error) {
// json value that we can further operate on.
//
// Note that invalid UTF8 characters are mangled for compatibility
// with earlier versions and to prevent unnecessery causing an error.
// with earlier versions and to prevent unnecessary causing an error.
//
// @todo research other approaches to avoid the double serialization
// ---
+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)