fix(pgmigrate): update sqlmigrate dep to v1.0.1, replace nolint with explicit throwaway

This commit is contained in:
AJ ONeal 2026-04-09 02:26:18 -06:00
parent f89b8115dd
commit 9614dea7df

View File

@ -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)