From 9f8a2b3d8f117c8557eceecffe114b00603ed9a7 Mon Sep 17 00:00:00 2001 From: Suphi Kaner Date: Sun, 29 Sep 2024 17:36:13 +0300 Subject: [PATCH] Remove unneeded else if in parser.cpp --- Ast/src/Parser.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Ast/src/Parser.cpp b/Ast/src/Parser.cpp index 44a40abf..2279ec27 100644 --- a/Ast/src/Parser.cpp +++ b/Ast/src/Parser.cpp @@ -2714,10 +2714,6 @@ AstExpr* Parser::parseTableConstructor() { report(lexer.current().location, "Expected ',' after table constructor element"); } - else if (lexer.current().type != '}') - { - break; - } } Location end = lexer.current().location;