LibJS/Parser: Remove superfluous switch case

This commit is contained in:
0xtechnobabble 2020-03-13 23:30:21 +02:00 committed by Andreas Kling
parent b5a22fc408
commit 0659d07241
Notes: sideshowbarker 2024-07-19 08:18:47 +09:00

View file

@ -425,9 +425,6 @@ NonnullOwnPtr<ForStatement> Parser::parse_for_statement()
OwnPtr<Statement> init = nullptr;
switch (m_current_token.type()) {
case TokenType::Var:
init = parse_variable_declaration();
break;
case TokenType::Semicolon:
break;
default: