Skip to content

Commit

Permalink
fix: close file
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill committed May 21, 2024
1 parent a1cb280 commit 0e1a442
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cli/tools/binary_tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func DownloadToFolder(filepath string) error {
if err != nil {
return fmt.Errorf("failed to open file %s: %v", filepath, err)
}
defer bicepBinary.Close()

// get the filemode so we can mark it as executable
file, err := bicepBinary.Stat()
Expand Down

0 comments on commit 0e1a442

Please sign in to comment.