Remove unnecessary null check (#3213)
This commit is contained in:
parent
e78612d280
commit
6d13975def
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue