Skip to content

Commit

Permalink
fix: close dockerFile
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed May 9, 2024
1 parent f4f89c5 commit dcb2747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/sealer/cmd/image/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ func saveDockerfileAsTempfile(dockerFileContent string) (string, error) {
if err != nil {
return "", err
}
defer f.Close()

defer func() {
if err != nil {
Expand Down

0 comments on commit dcb2747

Please sign in to comment.