mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Remove pointless branch from stringifying matcher assertions
This commit is contained in:
		@@ -26,13 +26,10 @@ namespace Catch {
 | 
			
		||||
            m_matcherString( matcherString )
 | 
			
		||||
        {}
 | 
			
		||||
 | 
			
		||||
        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;
 | 
			
		||||
        void streamReconstructedExpression( std::ostream& os ) const override {
 | 
			
		||||
            os << Catch::Detail::stringify( m_arg )
 | 
			
		||||
               << ' '
 | 
			
		||||
               << m_matcher.toString();
 | 
			
		||||
        }
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user