diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 4e5e03e4f..5ae729f95 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -2061,9 +2061,9 @@ void CheckOther::duplicateExpressionError(const Token *tok1, const Token *tok2, std::string msg = "Same expression on both sides of \'" + op + "\'"; if (expr1 != expr2) { std::string exprMsg = "The expression \'" + expr1 + " " + op + " " + expr2 + "\' is always "; - if(Token::Match(opTok, "==|>=|<=")) + if (Token::Match(opTok, "==|>=|<=")) msg = exprMsg + "true"; - else if(Token::Match(opTok, "!=|>|<")) + else if (Token::Match(opTok, "!=|>|<")) msg = exprMsg + "false"; msg += " because '" + expr1 + "' and '" + expr2 + "' represent the same value"; }