Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit e36cd1c

Browse files
committed
Don’t auto-add nodes
1 parent 723b1a8 commit e36cd1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readthedocs_ext/comments/translator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ def update_hash(self, node, builder):
8080
match = hasher.compare_hash(hash_obj, hash_list)
8181
if match:
8282
resp = builder.storage.update_node(old_hash=match, new_hash=hasher.hash_node(node), commit='foobar')
83-
else:
84-
resp = builder.storage.add_node(id=hasher.hash_node(node),
85-
document=builder.current_docname,
86-
source=node.rawsource or node.astext())
83+
# else:
84+
# resp = builder.storage.add_node(id=hasher.hash_node(node),
85+
# document=builder.current_docname,
86+
# source=node.rawsource or node.astext())
8787

8888
return resp
8989
return None

0 commit comments

Comments
 (0)