Skip to content
Snippets Groups Projects
Commit b5c5f9b1 authored by Martin Lange's avatar Martin Lange
Browse files

simplify dead links check - only one direction required

parent 7f3b006f
No related branches found
No related tags found
1 merge request!112Check for dead/idle links
......@@ -297,13 +297,6 @@ class Composition(Loggable):
if item.needs_push:
any_pos = True
any_pos = False
for item in reversed(chain):
if any_pos and item.needs_push:
self._log_dead_link(module, chain)
if item.needs_pull:
any_pos = True
def _log_dead_link(self, module, chain):
with ErrorLogger(module.logger if loggable(module) else self.logger):
raise ValueError(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment