mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 12:48:00 +00:00
fix(pgmigrate): update sqlmigrate dep to v1.0.1, replace nolint with explicit throwaway
This commit is contained in:
parent
f89b8115dd
commit
9614dea7df
@ -59,7 +59,7 @@ func (r *Migrator) execInTx(ctx context.Context, sql string) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("%w: begin: %w", sqlmigrate.ErrExecFailed, err)
|
||||
}
|
||||
defer tx.Rollback(ctx) //nolint:errcheck
|
||||
defer func() { _ = tx.Rollback(ctx) }()
|
||||
|
||||
if _, err := tx.Exec(ctx, sql); err != nil {
|
||||
return fmt.Errorf("%w: exec: %w", sqlmigrate.ErrExecFailed, err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user