#351 Speed-up mvn rules, pep8 fixes
This commit is contained in:
+2
-1
@@ -138,7 +138,8 @@ def replace_command(command, broken, matched):
|
||||
def is_app(command, *app_names):
|
||||
"""Returns `True` if command is call to one of passed app names."""
|
||||
for name in app_names:
|
||||
if command.script.startswith(u'{} '.format(name)):
|
||||
if command.script == name \
|
||||
or command.script.startswith(u'{} '.format(name)):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user