mirror of
https://github.com/FiloSottile/age.git
synced 2026-03-11 08:55:41 +00:00
cmd/age: add missing close in parseIdentitiesFile (#14)
This commit is contained in:
parent
fe362d8f0a
commit
2d009c8eaf
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ func parseIdentitiesFile(name string) ([]age.Identity, error) {
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to open file: %v", err)
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
var ids []age.Identity
|
||||
scanner := bufio.NewScanner(f)
|
||||
|
|
|
|||
Loading…
Reference in a new issue