run gofmt

This commit is contained in:
Gani Georgiev
2026-07-15 13:14:52 +03:00
parent f1618ee59b
commit dcb9cf3d0a
16 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -17,8 +17,8 @@ import (
"syscall"
"time"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/tools/auth"
"github.com/pocketbase/pocketbase/tools/dbutils"
+1 -1
View File
@@ -6,9 +6,9 @@ import (
"slices"
"strings"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/ozzo-validation/v4/is"
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/tools/dbutils"
"github.com/pocketbase/pocketbase/tools/list"
+1 -1
View File
@@ -5,8 +5,8 @@ import (
"errors"
"slices"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/tools/hook"
"github.com/pocketbase/pocketbase/tools/types"
)
+1 -1
View File
@@ -6,8 +6,8 @@ import (
"strconv"
"strings"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/tools/dbutils"
"github.com/pocketbase/pocketbase/tools/security"
)
+1 -1
View File
@@ -7,8 +7,8 @@ import (
"strconv"
"strings"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/core/validators"
"github.com/pocketbase/pocketbase/tools/dbutils"
"github.com/pocketbase/pocketbase/tools/list"
+1 -1
View File
@@ -10,8 +10,8 @@ import (
"strconv"
"strings"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/tools/security"
"github.com/spf13/cast"
)
+1 -1
View File
@@ -4,8 +4,8 @@ import (
"context"
"database/sql/driver"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/tools/list"
"github.com/pocketbase/pocketbase/tools/types"
)
+1 -1
View File
@@ -8,8 +8,8 @@ import (
"regexp"
"strings"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/core/validators"
"github.com/pocketbase/pocketbase/tools/security"
"github.com/spf13/cast"
+1
View File
@@ -241,6 +241,7 @@ func (r *RecordFieldResolver) updateQueryWithDeduplicateConstraint(query *dbx.Se
// }
}
//nolint:unused
func preferGroupBy(info *dbx.QueryInfo, fullUnquotedGroupByCol string) bool {
if len(info.GroupBy) != 0 {
return false
+1 -1
View File
@@ -12,8 +12,8 @@ import (
"sort"
"strings"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/core/validators"
"github.com/pocketbase/pocketbase/tools/dbutils"
"github.com/pocketbase/pocketbase/tools/filesystem"
+1 -1
View File
@@ -175,7 +175,7 @@ func (app *BaseApp) expandRecords(records []*Record, expandPath string, fetchFun
}
}
}
existsSet = nil
existsSet = nil //nolint:ineffassign
// fetch rels
rels, relsErr := fetchFunc(relCollection, relIds)
+1
View File
@@ -259,6 +259,7 @@ func (s *Settings) DBExport(app App) (map[string]any, error) {
// @todo remove with encoding/json/2
// serialize as empty array
//nolint:staticcheck
if s.settings.SuperuserIPs == nil {
s.settings.SuperuserIPs = []string{}
}
+1 -1
View File
@@ -5,8 +5,8 @@ import (
"errors"
"strings"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
)
// UniqueId checks whether a field string id already exists in the specified table.
+1 -1
View File
@@ -5,8 +5,8 @@ import (
"strings"
"time"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/golang-jwt/jwt/v5"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/core"
)
+1 -1
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"slices"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/core/validators"
"github.com/pocketbase/pocketbase/tools/security"
+1 -1
View File
@@ -19,9 +19,9 @@ import (
"time"
"github.com/dop251/goja"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/golang-jwt/jwt/v5"
"github.com/pocketbase/dbx"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/apis"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/forms"