Skip to content

Commit

Permalink
Update Library/Homebrew/sbom.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Ruoyu Zhong <[email protected]>
  • Loading branch information
SMillerDev and ZhongRuoyu authored May 26, 2024
1 parent 9d75d09 commit fdb347c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Library/Homebrew/sbom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ def write(validate: true, bottling: false)
# will no longer be valid.
Formula.clear_cache unless spdxfile.exist?

valid = valid?(bottling:)
if validate && valid.present? && !valid
if validate && (valid = valid?(bottling:)).present? && !valid
opoo "SBOM is not valid, not writing to disk!"
return
end
Expand Down

0 comments on commit fdb347c

Please sign in to comment.