Skip to content

Commit

Permalink
chore: minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Selwyn-Smith <[email protected]>
  • Loading branch information
benmss committed Aug 30, 2023
1 parent 2f1b58f commit 9e34d58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/macaron/slsa_analyzer/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,8 +997,7 @@ def _resolve_more_dependencies(self, dependencies: dict[str, DependencyInfo]) ->
if item["version"] != "unspecified":
purl_string = purl_string + "@" + item["version"]

urls = find_repo(PackageURL.from_string(purl_string))
item["url"] = DependencyAnalyzer.find_valid_url(urls)
item["url"] = find_repo(PackageURL.from_string(purl_string))
if item["url"] == "":
logger.debug("Failed to find url for purl: %s", purl_string)
else:
Expand Down

0 comments on commit 9e34d58

Please sign in to comment.