Skip to content

Commit

Permalink
Merge branch 'ab/unreachable-break'
Browse files Browse the repository at this point in the history
Code clean-up.

* ab/unreachable-break:
  style: do not "break" in switch() after "return"
  • Loading branch information
gitster committed Dec 18, 2020
2 parents e0f58c9 + 56f56ac commit 3517022
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -3948,10 +3948,8 @@ static int check_patch(struct apply_state *state, struct patch *patch)
break; /* happy */
case EXISTS_IN_INDEX:
return error(_("%s: already exists in index"), new_name);
break;
case EXISTS_IN_INDEX_AS_ITA:
return error(_("%s: does not match index"), new_name);
break;
case EXISTS_IN_WORKTREE:
return error(_("%s: already exists in working directory"),
new_name);
Expand Down
1 change: 0 additions & 1 deletion builtin/fast-export.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,6 @@ static struct commit *get_commit(struct rev_cmdline_entry *e, char *full_name)
if (!tag)
die("Tag %s points nowhere?", e->name);
return (struct commit *)tag;
break;
}
default:
return NULL;
Expand Down

0 comments on commit 3517022

Please sign in to comment.