Skip to content

Commit ab1bc9b

Browse files
authored
📝 unreachable code detected
🌹
1 parent 72a2880 commit ab1bc9b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

jmespath.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,6 @@
554554
} else {
555555
return node;
556556
}
557-
break;
558557
case TOK_NOT:
559558
right = this.expression(bindingPower.Not);
560559
return {type: "NotExpression", children: [right]};
@@ -591,7 +590,6 @@
591590
} else {
592591
return this._parseMultiselectList();
593592
}
594-
break;
595593
case TOK_CURRENT:
596594
return {type: TOK_CURRENT};
597595
case TOK_EXPREF:
@@ -629,7 +627,6 @@
629627
right = this._parseProjectionRHS(rbp);
630628
return {type: "ValueProjection", children: [left, right]};
631629
}
632-
break;
633630
case TOK_PIPE:
634631
right = this.expression(bindingPower.Pipe);
635632
return {type: TOK_PIPE, children: [left, right]};
@@ -689,7 +686,6 @@
689686
right = this._parseProjectionRHS(bindingPower.Star);
690687
return {type: "Projection", children: [left, right]};
691688
}
692-
break;
693689
default:
694690
this._errorToken(this._lookaheadToken(0));
695691
}
@@ -878,7 +874,6 @@
878874
} else {
879875
return null;
880876
}
881-
break;
882877
case "Subexpression":
883878
result = this.visit(node.children[0], value);
884879
for (i = 1; i < node.children.length; i++) {

0 commit comments

Comments
 (0)