Skip to content

Commit

Permalink
fix: close output file
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed Apr 22, 2024
1 parent e2f7fe8 commit cdef637
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/describezones/main.go
Expand Up @@ -165,6 +165,7 @@ func writeOutput(provider string, input []byte) {
if err != nil {
log.Fatalf("could not create output file: %s", err)
}
defer f.Close()

formatted, err := format.Source(input)
if err != nil {
Expand Down

0 comments on commit cdef637

Please sign in to comment.