Skip to content

Commit

Permalink
開いたおファイルをCloseいたしますわ (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmanjiro13 authored Jun 23, 2022
1 parent c81b349 commit 718371e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/ojosama/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func run(s string, args *CmdArgs) (int, error) {
if err != nil {
return exitStatusOutputError, err
}
defer out.Close()
}
out.WriteString(text)
return exitStatusOK, nil
Expand Down

0 comments on commit 718371e

Please sign in to comment.