Skip to content

Commit

Permalink
refactor(valid-expect): eliminate duplicate check (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 29, 2022
1 parent 5934b3b commit 7a77bfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rules/valid-expect.ts
Expand Up @@ -33,8 +33,7 @@ const getPromiseCallExpressionNode = (node: TSESTree.Node) => {
if (
node.type === AST_NODE_TYPES.CallExpression &&
node.callee.type === AST_NODE_TYPES.MemberExpression &&
isSupportedAccessor(node.callee.object) &&
getAccessorValue(node.callee.object) === 'Promise' &&
isSupportedAccessor(node.callee.object, 'Promise') &&
node.parent
) {
return node;
Expand Down

0 comments on commit 7a77bfd

Please sign in to comment.