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
+3 -1
View File
@@ -1,11 +1,13 @@
## v0.40.2 (WIP) ## v0.40.2 (WIP)
- Return an error when invalid values are passed as placeholder filter params and optimized params replacements to apply in a single pass. - Return an error when unsupported values are passed as placeholder filter params and optimized params replacement to apply in a single pass.
- Fixed collection index parsing error for indexes with missing name. - Fixed collection index parsing error for indexes with missing name.
- Minor UI autocomplete optimizations _(prefix match, autocomplete debounce, etc.)_. - Minor UI autocomplete optimizations _(prefix match, autocomplete debounce, etc.)_.
- Fixed linter warnings and comment typos.
- Bumped the min Go GitHub action version to 1.27.1 as it includes some [minor `database/sql` and `enconding/json/v2` bug fixes](https://github.com/golang/go/issues?q=milestone%3AGo1.27.1). - Bumped the min Go GitHub action version to 1.27.1 as it includes some [minor `database/sql` and `enconding/json/v2` bug fixes](https://github.com/golang/go/issues?q=milestone%3AGo1.27.1).
+1 -1
View File
@@ -31,7 +31,7 @@ func Pick(data any, rawFields string) (any, error) {
// json value that we can further operate on. // json value that we can further operate on.
// //
// Note that invalid UTF8 characters are mangled for compatibility // 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 // @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}`. // it should result in a JSON response like: `{"a":1, "b": 2}`.
// //
// Note that invalid UTF8 characters are mangled for compatibility // 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 { func (e *Event) JSON(status int, data any) error {
e.setResponseHeaderIfEmpty(headerContentType, "application/json") e.setResponseHeaderIfEmpty(headerContentType, "application/json")
e.Response.WriteHeader(status) e.Response.WriteHeader(status)
+1 -1
View File
@@ -129,7 +129,7 @@ app.pb.authStore.onChange((_, record) => {
/** /**
* Return a superuser file token. * Return a superuser file token.
* Optionally you can provide a collection identifier, to avoid unnecessery * Optionally you can provide a collection identifier, to avoid unnecessary
* calls in case the collection doesn't have protected files. * calls in case the collection doesn't have protected files.
* *
* @param {String} optCollectionIdORName * @param {String} optCollectionIdORName