Clean up switch cases: proper fall through comments, no break after
return.
This commit is contained in:
parent
7c52730439
commit
d0cf6a0a9b
3 changed files with 3 additions and 2 deletions
|
@ -849,10 +849,8 @@ nameofitem(s_char *buf, struct genitem *gp, int type)
|
|||
switch (type) {
|
||||
case EF_SHIP:
|
||||
return prship((struct shpstr *)gp);
|
||||
break;
|
||||
case EF_PLANE:
|
||||
return prplane((struct plnstr *)gp);
|
||||
break;
|
||||
case EF_LAND:
|
||||
return prland((struct lndstr *)gp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue