4

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.

Josh Johnson
  • 10,729
  • 12
  • 60
  • 83

0 Answers0