Merge components more efficiently

This commit is contained in:
2020-01-31 11:06:07 -06:00
parent 46e19eed1b
commit 2679522b76
4 changed files with 28 additions and 18 deletions

View File

@@ -50,9 +50,10 @@ class BranchPriorityComponent(Component):
pass
def merge(self, other):
if other.priority is not None:
self._merge(other.priority)
def merge(self, other_components):
for comp in other_components:
if comp.priority is not None:
self._merge(comp.priority)
def _merge(self, priority):