sequencer: move "else" keyword onto the same line as preceding brace
It is the current coding style of the Git project to write if (...) { ... } else { ... } instead of putting the closing brace and the "else" keyword on separate lines. Pointed out by Junio Hamano. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Jan 2, 2017 at 16:26 UTC
a70d8f8067640070d89d0764d0dee491f8e0bd13
1 file changed
+1
-2
sequencer.c
+1
-2
@@ -1070,8 +1070,7 @@ static int create_seq_dir(void)
1070
error(_("a cherry-pick or revert is already in progress"));
1071
advise(_("try \"git cherry-pick (--continue | --quit | --abort)\""));
1072
return -1;
1073
- }
1074
- else if (mkdir(git_path_seq_dir(), 0777) < 0)
1073
+ } else if (mkdir(git_path_seq_dir(), 0777) < 0)
1074
return error_errno(_("could not create sequencer directory '%s'"),
1075
git_path_seq_dir());
1076
return 0;