Skip to content

Commit

Permalink
refactor(valid-expect-in-promise): remove duplicate check (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Oct 11, 2021
1 parent c171942 commit cbea1d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/rules/valid-expect-in-promise.ts
Expand Up @@ -138,10 +138,7 @@ const isPromiseMethodThatUsesValue = (
}
}

return (
node.argument.type === AST_NODE_TYPES.Identifier &&
isIdentifier(node.argument, name)
);
return isIdentifier(node.argument, name);
};

/**
Expand Down

0 comments on commit cbea1d6

Please sign in to comment.