summaryrefslogtreecommitdiff
path: root/src/cppunit/ProtectorChain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppunit/ProtectorChain.cpp')
-rw-r--r--src/cppunit/ProtectorChain.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cppunit/ProtectorChain.cpp b/src/cppunit/ProtectorChain.cpp
index 087b938..f4c8bed 100644
--- a/src/cppunit/ProtectorChain.cpp
+++ b/src/cppunit/ProtectorChain.cpp
@@ -60,10 +60,7 @@ ProtectorChain::protect( const Functor &functor,
const ProtectorContext &context )
{
if ( m_protectors.empty() )
- {
- functor();
- return true;
- }
+ return functor();
Functors functors;
for ( int index = 0; index < m_protectors.size(); ++index )