mirror of
https://github.com/jamiebuilds/the-super-tiny-compiler.git
synced 2024-10-27 20:34:08 +00:00
Simplify possibly confusing code line
I may be wrong, but this line not only is wasteful but seems a bit confusing: it may wrongly suggest we will use the local `char` variable with the next character one more time.
This commit is contained in:
parent
4f7a85a9f8
commit
b95cd4f66d
@ -495,7 +495,7 @@ function tokenizer(input) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Skip the closing double quote.
|
// Skip the closing double quote.
|
||||||
char = input[++current];
|
++current;
|
||||||
|
|
||||||
// And add our `string` token to the `tokens` array.
|
// And add our `string` token to the `tokens` array.
|
||||||
tokens.push({ type: 'string', value });
|
tokens.push({ type: 'string', value });
|
||||||
|
Loading…
Reference in New Issue
Block a user