@dglsparsons
, excellent points. However, the code examples are a little difficult to read as all of the code is in the same line. Better readability can be achieved if it is something like below.
functiondoSomething(){if(!something.OK()){// return or throw error }returnsomething.Do()}
@dglsparsons , excellent points. However, the code examples are a little difficult to read as all of the code is in the same line. Better readability can be achieved if it is something like below.
New line before
return
please :3Hey - thanks for pointing this out. I'm not sure what's happened there.
I've fixed it now, so hopefully its much easier to read!