]> diplodocus.org Git - nmh/commitdiff
Replace some "FALLTHRU" comments with control flow.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 23 May 2017 11:56:00 +0000 (12:56 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 23 May 2017 11:59:06 +0000 (12:59 +0100)
Instead of a case statement falling through, with a "FALLTHRU" comment,
to the follow case that just does a break, continue, goto, etc.,
control-flow statement, duplicate the statement in place of the comment.
Fall-through should be the exception, and saving a break statement
doesn't offset the cognitive cost when reading the source.


No differences found