Skip to content

Commit

Permalink
Close files on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinkarthik committed Oct 8, 2019
1 parent 5aa812e commit 79e78ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Most suitable for csv files created from database tables`,
if err != nil {
return err
}
defer ctx.Close()

return runContext(ctx, os.Stdout, os.Stderr)
},
Expand Down

0 comments on commit 79e78ae

Please sign in to comment.