[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ant git commit: Tidy up the code

2018-04-05 15:01 GMT+00:00 Matt Benson <gudnabrsam@xxxxxxxxx>:

By and large I approve of these changes, but I felt compelled to express
> the opinion that I do not believe adding else after if/continue does
> anything to simplify the code. IMO it does the opposite.
> Matt

The reasoning goes like this: the last continue is redundant (looks like a
copy and paste of an if-block).
So, changing an "if" to an "if else" makes all continue statements
If/when more if-blocks are needed, switch is more readable anyway.