Hm, wasn't `return await promise` a tiny performance issue?
So you returns a promise, but await it first, and then the return will be wrapped in a promise again as required by the async keyword.
Maybe that's outdated dogma...?
So you returns a promise, but await it first, and then the return will be wrapped in a promise again as required by the async keyword.
Maybe that's outdated dogma...?
Comments
Some codebases cares more about perf. Other the better debuggability.
I was just a little surprised to learn that the eslint rule now defaults to all. Thought maybe something changed.