Skip to content

Commit afb81a9

Browse files
committed
refactor(valid-expect-in-promise): remove unneeded condition
1 parent ea1d151 commit afb81a9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,7 @@ export default createRule<unknown[], MessageIds>({
291291

292292
const { parent } = findTopMostCallExpression(node);
293293

294-
if (
295-
!parent ||
296-
!isDirectlyWithinTestCaseCall(parent) ||
297-
parent.type === AST_NODE_TYPES.ArrowFunctionExpression
298-
) {
294+
if (!parent || !isDirectlyWithinTestCaseCall(parent)) {
299295
return;
300296
}
301297

0 commit comments

Comments
 (0)