Remove unnecessary null check (#3213)

This commit is contained in:
Ken-Patrick Lehrmann 2021-05-01 18:51:51 +02:00 committed by GitHub
parent e78612d280
commit 6d13975def
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1378,7 +1378,7 @@ void CheckStl::if_find()
continue;
const Token *conditionStart = scope.classDef->next();
if (conditionStart && Token::simpleMatch(conditionStart->astOperand2(), ";"))
if (Token::simpleMatch(conditionStart->astOperand2(), ";"))
conditionStart = conditionStart->astOperand2();
for (const Token *tok = conditionStart; tok->str() != "{"; tok = tok->next()) {