Skip to content

Commit

Permalink
fix: correct visited_temp to _visited_temp (optimization)
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-es committed Apr 4, 2024
1 parent d4c8cad commit e961feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazel2snyk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def bazel_to_depgraph(self, parent_node_id: str, depth: int):
"""
logger.debug(f"{parent_node_id=},{depth=}")

global visited_temp, bazel_xml_parser
# global visited_temp, bazel_xml_parser
logger.debug(f"{self._visited_temp=}")

children = self.bazel_xml_parser.get_children_from_rule(
Expand Down Expand Up @@ -114,7 +114,7 @@ def bazel_to_depgraph(self, parent_node_id: str, depth: int):
self.dep_graph.add_dep(child_node_id=None, parent_node_id=parent_dep_snyk)
self._visited.extend(self._visited_temp)

self.visited_temp = []
self._visited_temp = []

def snyk_dep_from_bazel_dep(
self, bazel_dep_id: str, package_source: BazelPackageSource
Expand Down

0 comments on commit e961feb

Please sign in to comment.