mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 04:38:02 +00:00
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:
parent
9d4b0ab4af
commit
dec11dd6d6
@ -111,7 +111,7 @@ func (r *Migrator) Applied(ctx context.Context) ([]sqlmigrate.Migration, error)
|
||||
}
|
||||
return nil, fmt.Errorf("reading migrations log: %w", err)
|
||||
}
|
||||
defer f.Close()
|
||||
defer func() { _ = f.Close() }()
|
||||
|
||||
var applied []sqlmigrate.Migration
|
||||
scanner := bufio.NewScanner(f)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user