From 5222b4890afd20a08ea67b0dce3f3328cc01cf68 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Thu, 6 Feb 2025 19:28:57 +0300 Subject: [PATCH] fix linter error Signed-off-by: nyagamunene --- auth/postgres/repo.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/auth/postgres/repo.go b/auth/postgres/repo.go index f6f6bccbf3..66e6e9df02 100644 --- a/auth/postgres/repo.go +++ b/auth/postgres/repo.go @@ -5,7 +5,6 @@ package postgres import ( "context" - "fmt" "time" "github.com/absmach/supermq/auth" @@ -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()