Return of boolean literal statements wrapped into if-then-else ones should be simplified.

Noncompliant Code Example

if (expression) {
  return true;
} else {
  return false;
}

Compliant Solution

return expression;