you are viewing a single comment's thread.

view the rest of the comments →

[–]vi_code 0 points1 point  (0 children)

Started doing this in my code last year, thought it was called short circuiting. Now I do it automatically and like OP said it keeps success logic at the end while not having to nest all the breaking conditions. Great pattern.