Skip to content

Commit

Permalink
Update packages/eslint-plugin/src/rules/no-floating-promises.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
  • Loading branch information
islandryu and JoshuaKGoldberg committed Feb 3, 2023
1 parent 7abf0af commit 899966b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/eslint-plugin/src/rules/no-floating-promises.ts
Expand Up @@ -153,8 +153,7 @@ export default util.createRule<Options, MessageId>({
? node.operatorToken.kind
: ts.SyntaxKind.Unknown;
const nodePrecedence = util.getOperatorPrecedence(node.kind, operator);
const unaryPrecedence = OperatorPrecedence.Unary;
return nodePrecedence > unaryPrecedence;
return nodePrecedence > OperatorPrecedence.Unary;
}

function isAsyncIife(node: TSESTree.ExpressionStatement): boolean {
Expand Down

0 comments on commit 899966b

Please sign in to comment.