Skip to content

Commit

Permalink
fix: golang lint ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dujiajun committed Sep 20, 2024
1 parent 0988657 commit cedf884
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linters:
- govet
- ineffassign
- staticcheck
- unused
# - unused
- gocyclo
- gofmt
- goimports
Expand Down
2 changes: 1 addition & 1 deletion service/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func ResetPassword(ctx context.Context, email string, password string, code stri
if err != nil {
return err
}
if user == nil || len(user) == 0 {
if len(user) == 0 {
return errors.New("user does not exist for this email")
}
passwordStore, err := password_hasher.MakeHashedPasswordStore(password)
Expand Down

0 comments on commit cedf884

Please sign in to comment.