Skip to content

Commit

Permalink
fix(terraformplan): close file (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin authored Jan 24, 2024
1 parent 90961c2 commit 725bdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scanners/terraformplan/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ func (s *Scanner) ScanFile(filepath string, fs fs.FS) (scan.Results, error) {
if err != nil {
return nil, err
}
defer file.Close()
return s.Scan(file)

}

func (s *Scanner) Scan(reader io.Reader) (scan.Results, error) {
Expand Down

0 comments on commit 725bdc3

Please sign in to comment.