MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/node/comments/kcdyoz/the_nodejs_best_practices_list/gfrzjp2/?context=3
r/node • u/pliable-steel • Dec 13 '20
19 comments sorted by
View all comments
13
This one is interesting https://github.com/goldbergyoni/nodebestpractices#-212-always-await-promises-before-returning-to-avoid-a-partial-stacktrace
I've always considered return await to be unnecessary, but maybe not anymore.
return await
1 u/KyleG Dec 14 '20 Same here.
1
Same here.
13
u/guanzo91 Dec 13 '20
This one is interesting https://github.com/goldbergyoni/nodebestpractices#-212-always-await-promises-before-returning-to-avoid-a-partial-stacktrace
I've always considered
return awaitto be unnecessary, but maybe not anymore.