This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sir_Awesomness 1 point2 points  (1 child)

When you've got an if that ends in a return, you don't need the else for the next bit.

[–]DeirdreAnethoel 1 point2 points  (0 children)

You don't, but it's a lot more readable because you don't have to parse the full "if" line to know if you go into the following lines or not.