remove useless check

--HG--
branch : plugin_no_pytest
This commit is contained in:
holger krekel 2015-04-24 14:09:57 +02:00
parent 237ac8562f
commit 9020bf48b7
1 changed files with 2 additions and 4 deletions

View File

@ -181,10 +181,8 @@ class PluginManager(object):
def make_hook_caller(self, name, plugins):
caller = getattr(self.hook, name)
methods = self.listattr(name, plugins=plugins)
if methods:
return HookCaller(caller.name, caller.firstresult,
argnames=caller.argnames, methods=methods)
return caller
return HookCaller(caller.name, caller.firstresult,
argnames=caller.argnames, methods=methods)
def register(self, plugin, name=None):
""" Register a plugin with the given name and ensure that all its