diff --git a/src/tree.py b/src/tree.py index fff4f99ace1399e7ef9fa25f9e0ff2195860023a..0da9ebca340f6ab6f2c9e33f56a43c4ca563f68a 100644 --- a/src/tree.py +++ b/src/tree.py @@ -69,7 +69,7 @@ def gen_tree(data_path): def ensure_id_helper(node): flag = False - if (node.get('node_id') is None) or node.get('node_id') in id_set or True: + if (node.get('node_id') is None) or node.get('node_id') in id_set: node['node_id'] = gen_node_id() flag = True