chore: update golangci-lint config

This commit is contained in:
steven
2023-09-22 17:55:26 +08:00
committed by Steven
parent a58ebd27ca
commit 07e0bb2d4c
42 changed files with 195 additions and 137 deletions

View File

@ -2,7 +2,7 @@ package store
import (
"context"
"fmt"
"errors"
"strings"
)
@ -102,7 +102,7 @@ func (s *Store) UpdateUser(ctx context.Context, update *UpdateUser) (*User, erro
}
if len(set) == 0 {
return nil, fmt.Errorf("no fields to update")
return nil, errors.New("no fields to update")
}
stmt := `