15

Today I found this jewel in a PR of a respected dev of my workplace:
if(conditions)
{
return true;
}
else
{
return false;
}

Comments
  • 5
    Apparently he don't trust the value of he's variable 😂😂
  • 1
    B-e-a-u-tiful
  • 0
    If you go from loose to strict typing it can be done like this but I would prefer other methods (casting, boolean expression, ternary).
Add Comment