mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	fixed extra check
This commit is contained in:
		| @@ -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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user