Mar 2, 2023
There are few practices that I dislike more than starting a method with an if and a return. It means there is a condition where the method does nothing. That makes it very confusing when reading code. To me, it would be a better design if the caller had the conditional split, not the first line of the method.