mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibJS/Parser: Remove superfluous switch case
This commit is contained in:
parent
b5a22fc408
commit
0659d07241
Notes:
sideshowbarker
2024-07-19 08:18:47 +09:00
Author: https://github.com/0xtechnobabble Commit: https://github.com/SerenityOS/serenity/commit/0659d072414 Pull-request: https://github.com/SerenityOS/serenity/pull/1445 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/deoxxa
1 changed files with 0 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue