Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hnaccy
· 8y ago · 0 comments
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?
Comments
[–]
timoxley
8y ago
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.