remove concatenation of m_exprComponents.op in if-branch where op has tested empty in previous line

This commit is contained in:
Ross Bencina 2016-03-20 10:05:51 +11:00 committed by Martin Hořeňovský
parent 7d2668fa15
commit 7255be28cc

View File

@ -141,7 +141,7 @@ namespace Catch {
} }
std::string ResultBuilder::reconstructExpression() const { std::string ResultBuilder::reconstructExpression() const {
if( m_exprComponents.op == "" ) if( m_exprComponents.op == "" )
return m_exprComponents.lhs.empty() ? m_assertionInfo.capturedExpression : m_exprComponents.op + m_exprComponents.lhs; return m_exprComponents.lhs.empty() ? m_assertionInfo.capturedExpression : m_exprComponents.lhs;
else if( m_exprComponents.op == "matches" ) else if( m_exprComponents.op == "matches" )
return m_exprComponents.lhs + " " + m_exprComponents.rhs; return m_exprComponents.lhs + " " + m_exprComponents.rhs;
else if( m_exprComponents.op != "!" ) { else if( m_exprComponents.op != "!" ) {