Skip to content

Commit

Permalink
fix: close SeedFile
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed May 12, 2024
1 parent 4f4e3cd commit d5e108b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/providers/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func NewProvider(config *providers.MockConfig) (providers.Interface, error) {
klog.ErrorS(err, "Failed to open seed file", "seedFile", config.SeedFile)
return nil, err
}
defer r.Close()
buf, err := ioutil.ReadAll(r)
if err != nil {
klog.ErrorS(err, "Failed to read seed file", "seedFile", config.SeedFile)
Expand Down

0 comments on commit d5e108b

Please sign in to comment.