Skip to content

Commit

Permalink
Merge pull request #372 from testwill/close_file
Browse files Browse the repository at this point in the history
fix: close ~/.batchsh/config.json
  • Loading branch information
dselans authored May 10, 2024
2 parents e259f15 + 14d5708 commit d462edb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ func getConfigJson(fileName string) (*os.File, error) {
if err != nil {
return nil, err
}
defer f.Close()

f.WriteString("{}")
}
Expand Down

0 comments on commit d462edb

Please sign in to comment.