Skip to content

Commit 2eefd69

Browse files
committed
fix lint
1 parent a493591 commit 2eefd69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/user/user.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,8 @@ type CountUserFilter struct {
834834
// HasUsers checks whether there are any users in the database, or only one user exists.
835835
func HasUsers(ctx context.Context) (ret struct {
836836
HasAnyUser, HasOnlyOneUser bool
837-
}, err error) {
837+
}, err error,
838+
) {
838839
res, err := db.GetEngine(ctx).Table(&User{}).Cols("id").Limit(2).Query()
839840
if err != nil {
840841
return ret, fmt.Errorf("error checking user existence: %w", err)

0 commit comments

Comments
 (0)