From 40e3de9941bb7bcf3a0e43b4f00e8961ec2e2cb0 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Tue, 24 Sep 2024 00:25:59 -0500 Subject: [PATCH] chore: `os.RemoveAll()` -> `os.Remove()` --- cmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index a3dd9bf..afc5263 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -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 {