Skip to content

Commit

Permalink
fix: close repo tmp file (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Nov 6, 2024
1 parent 06d542e commit 5e0eb01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func writeRepoTmpFile(r []Repo) (string, error) {
if err != nil {
return "", err
}
defer f.Close()

enc := json.NewEncoder(f)
if err := enc.Encode(m); err != nil {
Expand Down

0 comments on commit 5e0eb01

Please sign in to comment.