提交 a3a09290 编写于 作者: C Cleber Rosa

avocado/core/app.py: remove useless "ready" condition check

Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 e628c12d
......@@ -47,12 +47,10 @@ class AvocadoApp(object):
self.parser.finish()
if self.cli_dispatcher.extensions:
self.cli_dispatcher.map_method('run', self.parser.args)
self.ready = True
def run(self):
if self.ready:
subcommand = self.parser.args.subcommand
if subcommand in self.cli_cmd_dispatcher:
extension = self.cli_cmd_dispatcher[subcommand]
method = extension.obj.run
return method(self.parser.args)
subcommand = self.parser.args.subcommand
if subcommand in self.cli_cmd_dispatcher:
extension = self.cli_cmd_dispatcher[subcommand]
method = extension.obj.run
return method(self.parser.args)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册