Browse Source

Remove unreachable code

master
Dylan Baker 3 years ago
parent
commit
eb2f77c2c0
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      src/lexer.ts

+ 0
- 2
src/lexer.ts View File

@@ -120,8 +120,6 @@ export default class Lexer {
120 120
       }
121 121
       return this.token(TokenTypes.LITERAL, literal);
122 122
     }
123
-
124
-    return this.error(`Unexpected character ${c}`);
125 123
   }
126 124
 
127 125
   private token(type: TokenTypes, value: string): Token {

Loading…
Cancel
Save