mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-04 19:33:55 +00:00
cmd/age: add missing close in parseIdentitiesFile (#14)
This commit is contained in:
committed by
Filippo Valsorda
parent
fe362d8f0a
commit
2d009c8eaf
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user