Skip to content

Commit

Permalink
fix: add missing file close (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdavim authored Aug 23, 2022
1 parent c13b0ab commit d94fdbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gotenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func Read(filename string) (Env, error) {
if err != nil {
return nil, err
}
defer f.Close()
return strictParse(f, false)
}

Expand Down

0 comments on commit d94fdbe

Please sign in to comment.