Skip to content

Commit

Permalink
Remove redundant function call
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 18, 2023
1 parent 9107acc commit 8b2a75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checkstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ void CheckString::checkIncorrectStringCompare()
incorrectStringBooleanError(tok->tokAt(2), tok->strAt(2));
} else if (tok->str() == "?" && Token::Match(tok->astOperand1(), "%str%|%char%")) {
incorrectStringBooleanError(tok->astOperand1(), tok->astOperand1()->str());
} else if (Token::Match(tok, "%str%") && isUsedAsBool(tok) && isBooleanFuncArg(tok))
} else if (Token::Match(tok, "%str%") && isUsedAsBool(tok))
incorrectStringBooleanError(tok, tok->str());
}
}
Expand Down

0 comments on commit 8b2a75e

Please sign in to comment.