Fixed a dangling else issue

This commit is contained in:
Cyberboss 2016-06-13 10:27:52 -04:00
parent 88f7513007
commit 52e415805f
1 changed files with 4 additions and 4 deletions

View File

@ -22,12 +22,12 @@ namespace Catch {
inline std::size_t listTests( Config const& config, const bool includeSources ) { inline std::size_t listTests( Config const& config, const bool includeSources ) {
TestSpec testSpec = config.testSpec(); TestSpec testSpec = config.testSpec();
if( config.testSpec().hasFilters() ) if( config.testSpec().hasFilters() ) {
if( !includeSources ) if( !includeSources )
Catch::cout() << "Matching test cases:\n"; Catch::cout() << "Matching test cases:\n";
else { } else {
if( !includeSources ) if( !includeSources )
Catch::cout() << "All available test cases:\n"; Catch::cout() << "All available test cases:\n";
testSpec = TestSpecParser( ITagAliasRegistry::get() ).parse( "*" ).testSpec(); testSpec = TestSpecParser( ITagAliasRegistry::get() ).parse( "*" ).testSpec();
} }