Skip to content

Commit

Permalink
fix: close resource (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Jun 30, 2024
1 parent 142517f commit 347cd5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cache/ondisk.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (c *onDisk) Get(resourceKind, resourceAPIVersion, k8sVersion string) (inter
if err != nil {
return nil, err
}
defer f.Close()

return io.ReadAll(f)
}
Expand Down

0 comments on commit 347cd5e

Please sign in to comment.