Skip to content

Commit

Permalink
fix: close resource
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored May 20, 2024
1 parent 04f1cf2 commit 5418ff0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/resource/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func ProcessFile(input string, recurse bool) ([]*types.Wrapper, error) {
if err != nil {
return err
}
defer f.Close()
res, err := Parse(f)
if err != nil {
return fmt.Errorf("in %s: %s", input, err)
Expand Down

0 comments on commit 5418ff0

Please sign in to comment.