Closed MartinThoma closed 4 years ago
The description here is good, but the actual implementation suggests using "return condition" instead which is behaviour changing. Similarly the suggestion for "return not not condition" is "return condition" which is also behaviour changing.
Rule
Do not use an if-else block when you can directly return the condition.
Example