DEV Community

Discussion on: DevTips: Use early returns to avoid nested conditions

Collapse
 
yvonnickfrin profile image
🦁 Yvonnick FRIN • Edited

Thank you for your suggestion! I find your proposal a bit complex for this case. But there are good ideas if the codebase grow. I tend to refactor as the logic gets more complex than planning evolutions that might not comes.