mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Remove pointless branch from stringifying matcher assertions
This commit is contained in:
parent
0c0f73a48d
commit
8ee422d6bf
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user