Skip to content

Commit

Permalink
resolves #5717
Browse files Browse the repository at this point in the history
Signed-off-by: Chuan-Yen Chiang <cychiang0823@gmail.com>
  • Loading branch information
cychiang committed May 21, 2024
1 parent 6292789 commit e75cc03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/crank/beta/xpkg/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ func printFile(w io.Writer, path string) error {
if _, err := fmt.Fprintf(w, "\n%s\n", content); err != nil {
return errors.Wrap(err, "failed to write to stdout")
}
defer func() { _ = f.Close() }()
return nil
}

Expand Down

0 comments on commit e75cc03

Please sign in to comment.