From fed5ab9a13f8d4f3700062b7c7abd90b2eeac5df Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Wed, 2 Sep 2026 12:25:01 +0300 Subject: [PATCH] fixed linter warnings --- CHANGELOG.md | 4 +++- tools/picker/pick.go | 2 +- tools/router/event.go | 2 +- ui/src/pb.js | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6df94f92..53453415 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,13 @@ ## 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. - 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). diff --git a/tools/picker/pick.go b/tools/picker/pick.go index 880957d3..c58a19a6 100644 --- a/tools/picker/pick.go +++ b/tools/picker/pick.go @@ -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 // --- diff --git a/tools/router/event.go b/tools/router/event.go index fdff8c04..cff155ca 100644 --- a/tools/router/event.go +++ b/tools/router/event.go @@ -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) diff --git a/ui/src/pb.js b/ui/src/pb.js index 731a6325..bda1530a 100644 --- a/ui/src/pb.js +++ b/ui/src/pb.js @@ -129,7 +129,7 @@ app.pb.authStore.onChange((_, record) => { /** * 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. * * @param {String} optCollectionIdORName