Skip to content

Commit 8885551

Browse files
committed
refactor(valid-expect-in-promise): remove unneeded optional chain
1 parent 8526444 commit 8885551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export default createRule({
313313
return;
314314
}
315315

316-
switch (parent?.type) {
316+
switch (parent.type) {
317317
case AST_NODE_TYPES.VariableDeclarator: {
318318
if (isVariableAwaitedOrReturned(parent)) {
319319
return;

0 commit comments

Comments
 (0)