prefer-single-boolean-return 🔧 fixable Return of boolean literal statements wrapped into if-then-else flow should be simplified. Noncompliant Code Example if (expression) { return true; } else { return false; } or if (expression) { return true; } return false; Compliant Solution return expression;