From 195e4d0f89ad53d72ac0ebd4823a41fdfb8d9e2a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 3 Jun 2022 14:49:55 +0100 Subject: [PATCH] software_spec: handle nil manifests_annotations. Fixes #13372 --- Library/Homebrew/software_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index df4942423e..eb649ce55e 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -384,7 +384,7 @@ class Bottle manifests = json["manifests"] raise ArgumentError, "Missing 'manifests' section." if manifests.blank? - manifests_annotations = manifests.map { |m| m["annotations"] } + manifests_annotations = manifests.map { |m| m["annotations"] }.compact raise ArgumentError, "Missing 'annotations' section." if manifests_annotations.blank? bottle_digest = @resource.checksum.hexdigest