mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-31 00:47:56 +00:00
remove concatenation of m_exprComponents.op in if-branch where op has tested empty in previous line
This commit is contained in:
parent
7d2668fa15
commit
7255be28cc
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ namespace Catch {
|
|||
}
|
||||
std::string ResultBuilder::reconstructExpression() const {
|
||||
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" )
|
||||
return m_exprComponents.lhs + " " + m_exprComponents.rhs;
|
||||
else if( m_exprComponents.op != "!" ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue