Skip to content

Commit 2da2cc9

Browse files
ossilatorgitster
authored andcommitted
sequencer: remove pointless rollback_lock_file()
The file is gone even if commit_lock_file() fails. Signed-off-by: Oswald Buddenhagen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9055e40 commit 2da2cc9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sequencer.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2530,7 +2530,6 @@ static int safe_append(const char *filename, const char *fmt, ...)
25302530
}
25312531
if (commit_lock_file(&lock) < 0) {
25322532
strbuf_release(&buf);
2533-
rollback_lock_file(&lock);
25342533
return error(_("failed to finalize '%s'"), filename);
25352534
}
25362535

0 commit comments

Comments
 (0)