fix: removed error handling for tx.Rollback()

This commit is contained in:
Robin Dittmar
2026-07-20 21:11:46 +02:00
parent 5f4e95b3f7
commit 49f1497f45
+1 -6
View File
@@ -22,12 +22,7 @@ func (r *ListRepo) CreateList(ctx context.Context, name string, userIDs []string
if err != nil {
return nil, fmt.Errorf("begin transaction: %w", err)
}
defer func() {
err := tx.Rollback()
if err != nil {
slog.Error("failed to rollback transaction", slog.Any("error", err))
}
}()
defer tx.Rollback()
list := &domain.List{Name: name}