[return-await] await should be required in catch block only when it has a finally block #2344
Labels
bug
Something isn't working
good first issue
Good for newcomers
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
No error
Actual Result
Returning an awaited promise is required in this context. (line 5)
Additional Info
This issue can cause this rule to be in conflict with eslint's
no-return-await
. Adding the await to resolve@typescript-eslint/return-await
will then triggerno-return-await
Versions
@typescript-eslint/eslint-plugin
3.7.1
@typescript-eslint/parser
3.7.1
TypeScript
3.9.7
ESLint
7.5.0
node
12.16.1
yarn
1.22.4
The text was updated successfully, but these errors were encountered: