Skip to content

Commit cbea1d6

Browse files
authored
refactor(valid-expect-in-promise): remove duplicate check (#938)
1 parent c171942 commit cbea1d6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/rules/valid-expect-in-promise.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ const isPromiseMethodThatUsesValue = (
138138
}
139139
}
140140

141-
return (
142-
node.argument.type === AST_NODE_TYPES.Identifier &&
143-
isIdentifier(node.argument, name)
144-
);
141+
return isIdentifier(node.argument, name);
145142
};
146143

147144
/**

0 commit comments

Comments
 (0)