Skip to content

Commit

Permalink
refactor(valid-expect-in-promise): remove unneeded optional chain
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Oct 8, 2021
1 parent 3491dd7 commit 72bc5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/valid-expect-in-promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export default createRule({
return;
}

switch (parent?.type) {
switch (parent.type) {
case AST_NODE_TYPES.VariableDeclarator: {
if (isVariableAwaitedOrReturned(parent)) {
return;
Expand Down

0 comments on commit 72bc5d6

Please sign in to comment.