Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/sw360/capycli
Browse files Browse the repository at this point in the history
  • Loading branch information
t-graf committed Sep 13, 2024
2 parents 63df8b5 + d989b50 commit 3280a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capycli/dependencies/javascript.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def try_find_component_metadata(self, bomitem: Component, package_source: str) -
CaPyCliBom.BINARY_FILE_COMMENT)
if ext_ref2:
hash = info.get("dist", "").get("integrity", "")
if ext_ref and hash:
ext_ref.hashes.add(HashType(
if hash:
ext_ref2.hashes.add(HashType(
algorithm=HashAlgorithm.SHA_1,
hash_value=hash))

Expand Down

0 comments on commit 3280a03

Please sign in to comment.