Skip to content

Commit

Permalink
revert to if-else
Browse files Browse the repository at this point in the history
  • Loading branch information
Casheeew committed Dec 27, 2023
1 parent 5d3e203 commit 4f1299f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/js/general/object-property-accessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export class ObjectPropertyAccessor {
throw new Error(`Unexpected character: ${c}`);
}
break;
case 'close-bracket': { // Expecting closing bracket after quoted string
case 'close-bracket': // Expecting closing bracket after quoted string
if (v === 0x5d) { // ']'
pathArray.push(value);
value = '';
Expand All @@ -267,7 +267,6 @@ export class ObjectPropertyAccessor {
throw new Error(`Unexpected character: ${c}`);
}
break;
}
case 'next': { // Expecting . or [
switch (v) {
case 0x5b: // '['
Expand Down

0 comments on commit 4f1299f

Please sign in to comment.