mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 04:48:57 +00:00
fixed extra check
This commit is contained in:
parent
8fdcff776a
commit
3c673e0972
@ -40,7 +40,7 @@ def get_new_command(command, settings):
|
|||||||
cwd = os.path.split(cwd)[0]
|
cwd = os.path.split(cwd)[0]
|
||||||
continue
|
continue
|
||||||
best_matches = get_close_matches(directory, _get_sub_dirs(cwd), cutoff=MAX_ALLOWED_DIFF)
|
best_matches = get_close_matches(directory, _get_sub_dirs(cwd), cutoff=MAX_ALLOWED_DIFF)
|
||||||
if len(best_matches):
|
if best_matches:
|
||||||
cwd = os.path.join(cwd, best_matches[0])
|
cwd = os.path.join(cwd, best_matches[0])
|
||||||
else:
|
else:
|
||||||
return cd_mkdir.get_new_command(command, settings)
|
return cd_mkdir.get_new_command(command, settings)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user