cgeo/c-geo-opensource — comment on commit d51848cfdc0c647de75bbdce7c006b685a7a49d1
File: main/src/cgeo/geocaching/cgeodetail.java line 1099
By Bananeweizen:

This will not cause any harm (because of being invisible), but it should be "false", right?. To avoid bugs like that, I often try to extract the condition of the if to a local variable and then use the local variable as method argument _outside_ of the if and else branches. That way also the code duplication is reduced.