1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

LibCpp: Remove redundant comparison to Token::Type::PipePipe

SonarCloud flagged this 'Identical sub-expressions on both sides of
operator "||"'. When looking at the git history it looks like it was
just a copy / paste mistake that happened when Token::Type::Arrow
support was added.
This commit is contained in:
Brian Gianforcaro 2021-09-27 19:27:32 -07:00 committed by Andreas Kling
parent 69bc04d870
commit 998234f9e9

View file

@ -397,7 +397,6 @@ bool Parser::match_secondary_expression()
|| type == Token::Type::AndAnd
|| type == Token::Type::PipePipe
|| type == Token::Type::ExclamationMarkEquals
|| type == Token::Type::PipePipe
|| type == Token::Type::Arrow
|| type == Token::Type::LeftParen;
}