News for hackers. Stuff that matters.
Re:Avoid Else, Return Early (2013) by hnaccy on Monday March 26, 2018 @10:04AM (#16678950)
Removing the braces and returning the unneeded non-result of handleError to save a couple LOC is penny wise pound foolish.

Is this a common JS idiom?

Re:Avoid Else, Return Early (2013) by timoxley on Monday March 26, 2018 @12:53PM (#16680342)
The `err, result` signature of the function indicates that it will be executed asynchronously, and thus the return value can't be captured by anything anyway.