summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-27 19:27:32 -0700
committerAndreas Kling <kling@serenityos.org>2021-09-28 10:58:09 +0200
commit998234f9e9e5fd81dfb23a2238904869ea78cd6b (patch)
treeb048f996de4f4e3d4c498bdb5c450a10a8882290
parent69bc04d870a99b458f5741f11ffb35bc9beb83e5 (diff)
downloadserenity-998234f9e9e5fd81dfb23a2238904869ea78cd6b.zip
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.
-rw-r--r--Userland/Libraries/LibCpp/Parser.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCpp/Parser.cpp b/Userland/Libraries/LibCpp/Parser.cpp
index 1e33441044..7314050cba 100644
--- a/Userland/Libraries/LibCpp/Parser.cpp
+++ b/Userland/Libraries/LibCpp/Parser.cpp
@@ -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;
}