Skip to content
Snippets Groups Projects
Commit 9e1afc58 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

MAINT: removed one redundant function call

parent 1f058cd8
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!167Sync Graph
Pipeline #51527 passed with warnings
......@@ -546,6 +546,8 @@ class SyncGraph:
identifiable when none of the two nodes had the sufficient properties on its own before)
- check whether dependent nodes can now get an identifiable (the merge might have set the
ID such that dependent nodes can now create an identifiable)
Last review by Alexander Schlemmer on 2024-05-29.
"""
# sanity checks
if source is target:
......@@ -617,8 +619,9 @@ class SyncGraph:
# - merge
self._add_identifiables_to_dependent_nodes(target)
if self.get_equivalent(target) is not None:
self._merge_into(target, self.get_equivalent(target))
eq_node = self.get_equivalent(target)
if eq_node is not None:
self._merge_into(target, eq_node)
def _identifiable_is_needed(self, node: SyncNode):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment