diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb index 27f195a4d..bafaadc24 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb @@ -48,7 +48,7 @@ module Hbc          raise ArgumentError,            <<~EOS              Unknown/unsupported stanza: '#{stanza}' -            Check cask reference for supported stanzas. +            Check Cask reference for supported stanzas.            EOS        end @@ -74,8 +74,7 @@ module Hbc              value = value[artifact_name] if artifact_name            end -          if value.nil? || (value.respond_to?(:to_a) && value.to_a.empty?) || -             (value.respond_to?(:to_s) && value.to_s == "{}") +          if value.nil? || (value.respond_to?(:to_a) && value.to_a.empty?)              stanza_name = artifact_name ? artifact_name : stanza              raise CaskError, "no such stanza '#{stanza_name}' on Cask '#{cask}'"            end  | 
