Skip to content

Commit bda311f

Browse files
authored
Merge pull request #432 from jbampton/remove-unneeded-break
C: remove unneeded `break` statements
2 parents 6506596 + 0458f58 commit bda311f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/parser/lexer/lexer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,11 @@ Token* lexer_identifier()
137137
if (keywords[j].type == TOKEN_VALUE_IDENTIFIER) // it's end of the Keyword list/table
138138
{
139139
return token_make_value(TOKEN_VALUE_IDENTIFIER, tmp_str);
140-
break;
141140
}
142141
else if (keywords[j].length == ident_length // fast search performance
143142
&& strncmp(keywords[j].identifier, tmp_str, keywords[j].length) == 0)
144143
{
145144
return token_make(keywords[j].type);
146-
break;
147145
}
148146
}
149147
// return token_make(TOKEN_VALUE_IDENTIFIER);

0 commit comments

Comments
 (0)