Remove pointless branch from stringifying matcher assertions

This commit is contained in:
Martin Hořeňovský 2021-05-15 11:47:02 +02:00
parent 0c0f73a48d
commit 8ee422d6bf
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -27,12 +27,9 @@ namespace Catch {
{}
void streamReconstructedExpression( std::ostream& os ) const override {
auto matcherAsString = m_matcher.toString();
os << Catch::Detail::stringify( m_arg ) << ' ';
if( matcherAsString == Detail::unprintableString )
os << m_matcherString;
else
os << matcherAsString;
os << Catch::Detail::stringify( m_arg )
<< ' '
<< m_matcher.toString();
}
};