Skip to content

Commit

Permalink
Fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Aug 16, 2024
1 parent 04cc2fa commit 6706b1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions user/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ func (s *Store) getUsersForRole(ctx context.Context, r role.Role) ([]User, error
panic(fmt.Errorf("failed to build sql for getUsersForRole: %w", err))
}

//nolint:musttag
err = s.db.SelectContext(ctx, &u, sql, args...)
if err != nil {
return nil, fmt.Errorf("failed to get users for role: %w", err)
Expand Down Expand Up @@ -376,6 +377,7 @@ func (s *Store) getUsersNotInRole(ctx context.Context, r role.Role) ([]User, err
panic(fmt.Errorf("failed to build sql for getRoles: %w", err))
}

//nolint:musttag
err = s.db.SelectContext(ctx, &u, sql, args...)
if err != nil {
return nil, fmt.Errorf("failed to get roles: %w", err)
Expand Down
1 change: 1 addition & 0 deletions utils/squirrel.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func isListType(val any) bool {

type StringSQL string

//nolint:revive
func (s StringSQL) ToSql() (sql string, args []interface{}, err error) {
return string(s), args, nil
}

0 comments on commit 6706b1b

Please sign in to comment.