Skip to content

Commit 5ce8717

Browse files
committed
apodict: dead code.
1 parent 800ac4d commit 5ce8717

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/core/jsonc/verifier.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,7 @@ const jsoncVerifier = options => {
353353
updatePos(value);
354354
index += value.length;
355355
break;
356-
case 'key1':
357-
case 'key': {
356+
case 'key1': {
358357
index = consumeTrivia(index);
359358
if (triviaWait) break main; // wait for more input (incomplete comment)
360359
if (index >= buffer.length) {
@@ -415,7 +414,6 @@ const jsoncVerifier = options => {
415414
continue main;
416415
}
417416
if (cc === ASCII_CLOSE_BRACE) {
418-
if (expect !== 'key1') throw makeError("Verifier cannot parse input: unexpected token '}'");
419417
parent = stack.pop();
420418
expect = expected[parent];
421419
++offset;

0 commit comments

Comments
 (0)