What's the name of the anti-pattern illustrated by this example?
if (something()) {
return true;
} else {
return false;
}
It's a DRY violation but I've seen this specific one so much I'm wondering if it has a name.
What's the name of the anti-pattern illustrated by this example?
if (something()) {
return true;
} else {
return false;
}
It's a DRY violation but I've seen this specific one so much I'm wondering if it has a name.