hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 9c2a84de884dd95c13081b775897edd86cd13851
parent 1c7a00ccca5dd2122d0cbaeb3717a51e543aee90
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 22 Nov 2021 09:33:48 +0100

hare release: remove extra os::remove

This file is removed thanks to os::rmdirall instead.

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mcmd/hare/release.ha | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/cmd/hare/release.ha b/cmd/hare/release.ha @@ -108,7 +108,6 @@ fn do_release( const changelog = temp::named(os::cwd, dir, io::mode::WRITE)?; const clfile = changelog.0, changelog = changelog.1; defer io::close(clfile); - defer os::remove(changelog)!; fmt::fprintfln(clfile, changelog_template, lasttag, name, newtag)?; shortlog(clfile, range)?; @@ -140,7 +139,6 @@ fn do_initial_release(ver: (modversion | increment)) (void | release_error) = { const changelog = temp::named(os::cwd, dir, io::mode::WRITE)?; const clfile = changelog.0, changelog = changelog.1; defer io::close(clfile); - defer os::remove(changelog)!; fmt::fprintfln(clfile, initial_template, name, newtag)?; git_runcmd("tag", "-aeF", changelog, newtag)?;