Skip to content

Commit

Permalink
chore: os.RemoveAll() -> os.Remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 24, 2024
1 parent a01896e commit 40e3de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func openAndTemplateFile(conf *config.Config, w io.Writer, path string) error {
}
defer func() {
_ = temp.Close()
_ = os.RemoveAll(temp.Name())
_ = os.Remove(temp.Name())
}()

if _, err := temp.WriteString(s); err != nil {
Expand Down

0 comments on commit 40e3de9

Please sign in to comment.