Skip to content

Commit 1e27b58

Browse files
committed
fix: redundant condition
1 parent 9d48f3c commit 1e27b58

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/rules/no-wait-for-multiple-assertions.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { TSESTree } from '@typescript-eslint/utils';
22

33
import { createTestingLibraryRule } from '../create-testing-library-rule';
4-
import {
5-
getPropertyIdentifierNode,
6-
isExpressionStatement,
7-
} from '../node-utils';
4+
import { getPropertyIdentifierNode } from '../node-utils';
85

96
export const RULE_NAME = 'no-wait-for-multiple-assertions';
107
export type MessageIds = 'noWaitForMultipleAssertion';
@@ -38,10 +35,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
3835
body: Array<TSESTree.Node>
3936
): Array<TSESTree.ExpressionStatement> {
4037
return body.filter((node) => {
41-
if (!isExpressionStatement(node)) {
42-
return false;
43-
}
44-
4538
const expressionIdentifier = getPropertyIdentifierNode(node);
4639
if (!expressionIdentifier) {
4740
return false;

0 commit comments

Comments
 (0)