mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-08 15:41:18 +02:00
fixed linter warnings
This commit is contained in:
@@ -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
|
||||
// ---
|
||||
|
||||
@@ -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