Parser.hpp: Remove a useless condition in the filter_comma_list function

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-04-23 01:07:50 +02:00
parent c0f7b4cc22
commit 51b5a546c7
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ namespace Parser {
) { error(token, text, token.line, quoteTokenText); }
void filter_comma_list(vector<tok>& tokens) {
if (tokens.size() >= 2 && tokens[1].toktype != tok::RPAR) {
if (tokens.size() >= 2) {
for (auto iterator = tokens.begin(); iterator->toktype != tok::COMMA && iterator < tokens.end() - 1; ++iterator) {
const auto nextIterator = iterator + 1;
if (nextIterator->toktype == tok::COMMA) {