Skip to content

Commit 3517022

Browse files
committed
Merge branch 'ab/unreachable-break'
Code clean-up. * ab/unreachable-break: style: do not "break" in switch() after "return"
2 parents e0f58c9 + 56f56ac commit 3517022

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

apply.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3948,10 +3948,8 @@ static int check_patch(struct apply_state *state, struct patch *patch)
39483948
break; /* happy */
39493949
case EXISTS_IN_INDEX:
39503950
return error(_("%s: already exists in index"), new_name);
3951-
break;
39523951
case EXISTS_IN_INDEX_AS_ITA:
39533952
return error(_("%s: does not match index"), new_name);
3954-
break;
39553953
case EXISTS_IN_WORKTREE:
39563954
return error(_("%s: already exists in working directory"),
39573955
new_name);

builtin/fast-export.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,6 @@ static struct commit *get_commit(struct rev_cmdline_entry *e, char *full_name)
923923
if (!tag)
924924
die("Tag %s points nowhere?", e->name);
925925
return (struct commit *)tag;
926-
break;
927926
}
928927
default:
929928
return NULL;

0 commit comments

Comments
 (0)