Skip to content

Commit 8de1ee4

Browse files
authored
move break to a line below.
1 parent 283b706 commit 8de1ee4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythainlp/util/trie.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def remove(self, word: str) -> None:
6262
child.end = False
6363
# prune up the tree
6464
for parent, child, ch in reversed(threes):
65-
if child.end or child.children: break
65+
if child.end or child.children:
66+
break
6667
del parent.children[ch] # remove from parent dict
6768

6869
def prefixes(self, text: str) -> List[str]:

0 commit comments

Comments
 (0)