Conditional blocks introduce scopes that need to be kept track of, linear code is easier to follow. So use early exiting to reduce cognitive load, a number of devs (including myself) consider this good practice.
Conditional blocks introduce scopes that need to be kept track of, linear code is easier to follow. So use early exiting to reduce cognitive load, a number of devs (including myself) consider this good practice.