Skip to content

Commit

Permalink
chore(codeql): make codeql happy (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm committed Sep 1, 2024
1 parent 6dba8cb commit 12b95ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/parser/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,13 @@ auto parser::parse_function_parameters() -> std::vector<std::string>
return parameters;
}
next_token();
parameters.push_back(parse_identifier()->value);
auto param = parse_identifier();
parameters.push_back(param->value);
while (peek_token_is(comma)) {
next_token();
next_token();
parameters.push_back(parse_identifier()->value);
param = parse_identifier();
parameters.push_back(param->value);
}
if (!get(rparen)) {
return {};
Expand Down

0 comments on commit 12b95ab

Please sign in to comment.