From 7b4254a9cac12da171742e5cb6fe02c758978f5a Mon Sep 17 00:00:00 2001 From: Muhammad Luthfi Fahlevi Date: Thu, 22 Aug 2024 11:30:41 +0700 Subject: [PATCH] refactor: remove redundant code --- internal/store/postgres/asset_repository.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/store/postgres/asset_repository.go b/internal/store/postgres/asset_repository.go index 17753cf3..001c9811 100644 --- a/internal/store/postgres/asset_repository.go +++ b/internal/store/postgres/asset_repository.go @@ -391,11 +391,8 @@ func (r *AssetRepository) DeleteByQueryExpr(ctx context.Context, queryExpr query } urns, err = r.deleteByQueryAndReturnURNS(ctx, query) - if err != nil { - return err - } - return nil + return err }) return urns, err