mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-21 05:24:05 +02:00
fixed linter warnings
This commit is contained in:
1 parent
6d9ca9bf9d
commit
fed5ab9a13
4 files changed
+6
-4
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user