Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

removed duplicate error calls

Kevin Papstde3c545f1be1
diff --git a/app/services/blob/sql/sql.go b/app/services/blob/sql/sql.go
index b02c68754..01f8c8418 100644
--- a/app/services/blob/sql/sql.go
+++ b/app/services/blob/sql/sql.go
@@ -118,10 +118,6 @@ func storeBlob(ctx context.Context, c *cmd.StoreBlob) error {
return errors.Wrap(err, "failed to store blob with key '%s'", c.Key)
}
- if err != nil {
- return errors.Wrap(err, "failed to commit store of blob with key '%s'", c.Key)
- }
-
return nil
})
}
@@ -135,10 +131,6 @@ func deleteBlob(ctx context.Context, c *cmd.DeleteBlob) error {
return errors.Wrap(err, "failed to delete blob with key '%s'", c.Key)
}
- if err != nil {
- return errors.Wrap(err, "failed to commit deletion of blob with key '%s'", c.Key)
- }
-
return nil
})
}
@@ -168,4 +160,4 @@ func using(ctx context.Context, handler func(trx *dbx.Trx, tenantId sql.NullInt6
}
return trx.Commit()
-}
\ No newline at end of file
+}