Skip to content

Commit

Permalink
remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Jan 23, 2025
1 parent 53b82c8 commit f863263
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions go/libraries/doltcore/sqle/dsess/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,6 @@ func (d *DoltSession) CommitTransaction(ctx *sql.Context, tx sql.Transaction) (e
return nil
}

// There is no transaction to commit
if tx == nil {
panic("why have you done this?")
return nil
}

dirties := d.dirtyWorkingSets()
if len(dirties) == 0 {
return nil
Expand Down
2 changes: 1 addition & 1 deletion go/libraries/doltcore/sqle/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func ExecuteSql(dEnv *env.DoltEnv, root doltdb.RootValue, statements string) (do
// commit leftover transaction
trx := ctx.GetTransaction()
if trx != nil {
err = dsess.DSessFromSess(ctx.Session).CommitTransaction(ctx, ctx.GetTransaction())
err = dsess.DSessFromSess(ctx.Session).CommitTransaction(ctx, trx)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f863263

Please sign in to comment.