Skip to content

Commit f44e2c1

Browse files
committed
return nil when no transaction is opened
1 parent e000aea commit f44e2c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/db/schema/internal/postgres/postgres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (p *Postgres) RollbackRun(ctx context.Context) error {
209209
p.tx = nil
210210
}()
211211
if p.tx == nil {
212-
return errors.New(ctx, errors.MigrationIntegrity, op, "no pending transaction")
212+
return nil
213213
}
214214
if err := p.tx.Rollback(); err != nil {
215215
if errors.Is(err, sql.ErrTxDone) {

0 commit comments

Comments
 (0)