Skip to content

Commit

Permalink
chore: minor improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Trong Nhan Mai <[email protected]>
  • Loading branch information
tromai committed Jun 14, 2023
1 parent f6d7426 commit 2cc75c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/macaron/slsa_analyzer/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ def get_transitive_children(self, parent_id: str) -> list[str]:
if child not in visited:
stack.append(child)
elif child in stack:
# Circular Dependency.
raise CheckCircularDependency("cycle nodes detected")
else:
stack.pop()
Expand Down Expand Up @@ -412,7 +411,6 @@ def get_transitive_parents(self, child_id: str) -> list[str]:
if parent not in visited:
stack.append(parent)
elif parent in stack:
# Circular Dependency.
raise CheckCircularDependency("cycle nodes detected")
else:
stack.pop()
Expand Down Expand Up @@ -488,7 +486,7 @@ def _build_topo_graph(self, ex_pats: list[str], in_pats: list[str]) -> set[str]
else:
final_checks_id = self._get_final_checks(ex_pats, in_pats)
except (CheckCircularDependency, CheckRegistryError) as error:
logger.info(error)
logger.error(error)
return None

for check_id in final_checks_id:
Expand Down

0 comments on commit 2cc75c0

Please sign in to comment.