if
statement with just the condition if all it does is return a bool
value CS-R1126If all your if
statement does is return a bool
value in both the then and else blocks, consider replacing the entire if
statement with just the condition.
if (condition)
{
return true;
else
{
return false;
}
return condition;