Fix cppcheck error

This commit is contained in:
Paul 2020-07-21 13:20:39 -05:00
parent 38e1b57bc9
commit 5bc5c96c8f
1 changed files with 1 additions and 1 deletions

View File

@ -1123,7 +1123,7 @@ void CheckCondition::checkIncorrectLogicOperator()
// Comparison #1 (LHS)
const Token *comp1 = tok->astOperand1();
if (comp1 && comp1->str() == tok->str())
if (comp1->str() == tok->str())
comp1 = comp1->astOperand2();
// Comparison #2 (RHS)