#392: Little refactoring

This commit is contained in:
nvbn
2015-10-29 00:13:59 +08:00
parent a4c391096a
commit f20311fa89
20 changed files with 52 additions and 54 deletions
+2 -2
View File
@@ -145,8 +145,8 @@ def is_app(command, *app_names, **kwargs):
if kwargs:
raise TypeError("got an unexpected keyword argument '{}'".format(kwargs.keys()))
if command.split_script is not None and len(command.split_script) > at_least:
return command.split_script[0] in app_names
if command.script_parts is not None and len(command.script_parts) > at_least:
return command.script_parts[0] in app_names
return False