From 51947bf25701294b3033ab49ca86a456b1e61540 Mon Sep 17 00:00:00 2001 From: Tommy Back Date: Sun, 5 Oct 2014 13:00:53 +0200 Subject: [PATCH] Simplification of else. --- TestHarness.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/TestHarness.hpp b/TestHarness.hpp index 1bdcdd0..19756b5 100644 --- a/TestHarness.hpp +++ b/TestHarness.hpp @@ -101,10 +101,7 @@ class TextResultWriter : public ResultWriter std::cout << "\nAll tests pass.\n"; return; } - else - { - std::cout << "\n" << failures_ << " out of " << testCount_ << " tests failed.\n"; - } + std::cout << "\n" << failures_ << " out of " << testCount_ << " tests failed.\n"; } virtual void startTest(const std::string&, const std::string&)