diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb index 597ff45970..1ac5856736 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb @@ -67,7 +67,7 @@ module Hbc if value.nil? || (value.respond_to?(:to_a) && value.to_a.empty?) || (value.respond_to?(:to_s) && value.to_s == "{}") || - (artifact_name && !value.key?(artifact_name)) + (artifact_name && !value.include?(artifact_name)) if artifact_name thing = artifact_name