fix(shmigrate): explicit Close throwaway

- Replace bare `defer f.Close()` with `defer func() { _ = f.Close() }()`
  for explicit error throwaway (consistent with other backends)
This commit is contained in:
AJ ONeal 2026-04-09 02:43:18 -06:00
parent 9d4b0ab4af
commit dec11dd6d6
No known key found for this signature in database

View File

@ -111,7 +111,7 @@ func (r *Migrator) Applied(ctx context.Context) ([]sqlmigrate.Migration, error)
} }
return nil, fmt.Errorf("reading migrations log: %w", err) return nil, fmt.Errorf("reading migrations log: %w", err)
} }
defer f.Close() defer func() { _ = f.Close() }()
var applied []sqlmigrate.Migration var applied []sqlmigrate.Migration
scanner := bufio.NewScanner(f) scanner := bufio.NewScanner(f)