Skip to content

Commit 94e04f0

Browse files
committed
Fix lint
1 parent 7b16dae commit 94e04f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/user/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ func GetUserByID(ctx context.Context, id int64) (*User, error) {
856856

857857
// GetUserByIDs returns the user objects by given IDs if exists.
858858
func GetUserByIDs(ctx context.Context, ids []int64) ([]*User, error) {
859-
if len(ids) <= 0 {
859+
if len(ids) == 0 {
860860
return nil, nil
861861
}
862862

0 commit comments

Comments
 (0)