Skip to main content
Post Made Community Wiki
Source Link
Robert Harvey
  • 200.1k
  • 55
  • 468
  • 679

It's only redundant code, not life or death. However....

If it's happening a lot, it could be a problem with how someBool is being named. A good name can go a long way towards eliminating the need for the ==true

if(IsSomeCondition)

or

if(hasCondition)

or

if(somethingExists)

for example.