mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	remove concatenation of m_exprComponents.op in if-branch where op has tested empty in previous line
This commit is contained in:
		 Ross Bencina
					Ross Bencina
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							7d2668fa15
						
					
				
				
					commit
					7255be28cc
				
			| @@ -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 != "!" ) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user