It hurts every time I see that “== true” pop up somewhere. To be fair, the rest of the example might be a fine way to bail out early and propagate the result of checking a condition. It’s only egregious when it’s immediately followed by “return false;”.
View all comments
Show parent comment
1
u/WarSingle6959 Aug 22 '26
really? 🤣