Skip to content

Commit

Permalink
Remove unreachable if
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck committed Jun 25, 2024
1 parent 2971779 commit 07c772d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lexer/lex.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,7 @@ TokenType ttype_from_string(const char *contents) {
// Single character contents
if (len == 1) {
TokenType token = ttype_one_char(contents[0]);

if (token != TT_NO_TOKEN) {
return token;
}
return token;
}

return ttype_many_chars(contents);
Expand Down

0 comments on commit 07c772d

Please sign in to comment.