Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit 8c4a6ef

Browse files
committed
Use is not None
1 parent a19b72c commit 8c4a6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sudachipy/plugin/path_rewrite/path_rewrite_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def concatenate_oov(self, path, begin, end, pos_id, lattice):
6464
e = path[end - 1].get_end()
6565

6666
n = lattice.get_minimum_node(b, e)
67-
if n:
67+
if n is not None:
6868
path[begin:end] = [n]
6969
return n
7070

0 commit comments

Comments
 (0)