Skip to content

Commit 7a91778

Browse files
committed
Fix E501 line length in radix_tree
1 parent 4f7587e commit 7a91778

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data_structures/trie/radix_tree.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ def insert(self, word: str) -> None:
6464
"""
6565
# Case 1: If the word is the prefix of the node
6666
# Solution: We set the current node as leaf
67-
# if self.prefix == word and not self.is_leaf: -------------------------------issue fix
68-
# self.is_leaf = True --------------------------------------------------------------issue fix
69-
67+
7068
# Case 2: The node has no edges that have a prefix to the word
7169
# Solution: We create an edge from the current node to a new one
7270
# containing the word

0 commit comments

Comments
 (0)