Skip to content

Commit 33e49a3

Browse files
committedOct 3, 2021
Minor changes in function defintions
1 parent d134aa0 commit 33e49a3

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
 

‎isort/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ def find_all_configs(src_paths: Tuple[str]) -> Trie:
807807
config_data = {}
808808

809809
if config_data:
810-
trie_root._insert(potential_config_file, potential_config_file, config_data)
810+
trie_root._insert(potential_config_file, config_data)
811811
break
812812

813813
return trie_root

‎isort/utils.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
class TrieNode:
88
def __init__(self, config_file: str = "", config_data: Optional[Dict[str, Any]] = None) -> None:
9-
if not config_file:
10-
config_file = ""
11-
129
if not config_data:
1310
config_data = {}
1411

@@ -25,8 +22,8 @@ class Trie:
2522
def __init__(self, config_file: str = "", config_data: Optional[Dict[str, Any]] = None) -> None:
2623
self.root: TrieNode = TrieNode(config_file, config_data)
2724

28-
def _insert(self, config_path: str, config_file: str, config_data: Dict[str, Any]) -> None:
29-
resolved_config_path_as_tuple = Path(config_path).parent.resolve().parts
25+
def _insert(self, config_file: str, config_data: Dict[str, Any]) -> None:
26+
resolved_config_path_as_tuple = Path(config_file).parent.resolve().parts
3027

3128
temp = self.root
3229

0 commit comments

Comments
 (0)
Please sign in to comment.