Avoid unneeded break statement.
This is purely a style change with no behavior difference. In Go (unlike most other languages), case statements in a switch don't need an explicit break statement, it happens by default. Adding it explicitly is possible, but has no effect. In this case, having the break statement hurts readability because it's hard to tell if it's a mistake, and the break was intended to break out of the outer for loop, rather than do nothing for the switch statement. So, remove it, to make it more clear that there is no bug here.pull/266/head
parent
2004188462
commit
b88a9bd458