It's unnecessary to await a promise returned from an async function
(except if, as not needed here, the exception is to be caught in this
function instead of by a caller).
Since this is the only use of await, this function is not actually
async. Finally, it should be named with the same casing convention as
the previous example.
It's unnecessary to await a promise returned from an async function (except if, as not needed here, the exception is to be caught in this function instead of by a caller).
It's slightly verbose and advised against: https://github.com/eslint/eslint/blob/master/docs/rules/no-return-await.md https://jakearchibald.com/2017/await-vs-return-vs-return-await/
Since this is the only use of await, this function is not actually async. Finally, it should be named with the same casing convention as the previous example.
Preview | Diff