sequencer: remove pointless rollback_lock_file()
The file is gone even if commit_lock_file() fails. Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
9055e401dd
commit
2da2cc9b28
@ -2530,7 +2530,6 @@ static int safe_append(const char *filename, const char *fmt, ...)
|
||||
}
|
||||
if (commit_lock_file(&lock) < 0) {
|
||||
strbuf_release(&buf);
|
||||
rollback_lock_file(&lock);
|
||||
return error(_("failed to finalize '%s'"), filename);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user