diff --git a/.golangci.yml b/.golangci.yml index d79c6ee..d6b0d52 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,7 +5,7 @@ linters: - govet - ineffassign - staticcheck - - unused +# - unused - gocyclo - gofmt - goimports diff --git a/service/auth.go b/service/auth.go index 3962dd9..b054fe1 100644 --- a/service/auth.go +++ b/service/auth.go @@ -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)