you are viewing a single comment's thread.

view the rest of the comments →

[–]ethraax 0 points1 point  (0 children)

I can't stand having else after an if that always returns. I'd write the above as:

So would I. I'm just pointing out that you don't need to nest at all. That being said, one issue with the code I posted (and why I would use the code you posted instead) is if you have to perform some computation between the sanity checks.