Skip to content

Commit 0d41b25

Browse files
committed
fix lint
1 parent 12cca8a commit 0d41b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/user/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func UpdateUser(ctx context.Context, u *user_model.User, opts *UpdateOptions) er
137137
} else if !user_model.IsLastAdminUser(ctx, u) /* not the last admin */ {
138138
u.IsAdmin = opts.IsAdmin.Value().FieldValue // it's safe to change it from false to true (not the last admin)
139139
cols = append(cols, "is_admin")
140-
} else /* IsAdmin=false but this is the last admin user */ {
140+
} else /* IsAdmin=false but this is the last admin user */ { //nolint
141141
if !opts.IsAdmin.Value().FromSync {
142142
return user_model.ErrDeleteLastAdminUser{UID: u.ID}
143143
}

0 commit comments

Comments
 (0)