Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Feb 6, 2025
1 parent 03615ac commit 196d370
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions auth/postgres/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package postgres

import (
"context"
"fmt"
"time"

"github.com/absmach/supermq/auth"
Expand Down Expand Up @@ -428,9 +427,7 @@ func (pr *patRepo) RemoveScopeEntry(ctx context.Context, userID, patID string, p

res, err := pr.db.NamedExecContext(ctx, updateScopeQuery, scope)
if err != nil {

x := fmt.Sprintf("%+v \n %+v \n %+v \n", pat.Scope, scope, isEmptyScope(pat.Scope))
return auth.Scope{}, errors.New(x)
return auth.Scope{}, errors.Wrap(repoerr.ErrUpdateEntity, err)
}

cnt, err := res.RowsAffected()
Expand Down

0 comments on commit 196d370

Please sign in to comment.