Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is no need to include "return Promise(...)" in an async function because async/await is syntactic sugar for a Promise-returning function. This caused two or even three layers (if the function given to the Promise constructor was itself async) of nested Promises needlessly.
- Loading branch information