#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
+1 -1
View File
@@ -4,7 +4,7 @@ from thefuck.specific.sudo import sudo_support
@sudo_support
def match(command):
return command.split_script and os.path.exists(command.split_script[0]) \
return command.script_parts and os.path.exists(command.script_parts[0]) \
and 'command not found' in command.stderr