5 ms·
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?
by hnaccy 9y ago
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?
- timoxley 9y agoThe `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.