Skip to content

Commit

Permalink
trivial code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
qwinsi committed Feb 21, 2025
1 parent 7e5f0e5 commit 32ba21a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tex-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ export class LatexParser {

parseNextExprWithoutSupSub(tokens: TexToken[], start: number): ParseResult {
const firstToken = tokens[start];
const tokenType = firstToken.type;
switch (tokenType) {
switch (firstToken.type) {
case TexTokenType.ELEMENT:
return [new TexNode('element', firstToken.value), start + 1];
case TexTokenType.TEXT:
Expand Down

0 comments on commit 32ba21a

Please sign in to comment.