aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2017-11-24 19:39:49 +0100
committerMarkus Reiter2017-11-28 00:20:29 +0100
commit89845e7f76ddd759f96d1587d485afd574c9b78f (patch)
treebd983653a32de018d5aed71fb9bfff8249b054d2 /Library
parent1948729ec88cee2cb6797cb5d10979ed38bf6f12 (diff)
downloadbrew-89845e7f76ddd759f96d1587d485afd574c9b78f.tar.bz2
Fix `_stanza` test.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
index bafaadc24..bdb1c0c30 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
@@ -74,7 +74,7 @@ module Hbc
value = value[artifact_name] if artifact_name
end
- if value.nil? || (value.respond_to?(:to_a) && value.to_a.empty?)
+ if value.nil? || (value.respond_to?(:empty?) && value.empty?)
stanza_name = artifact_name ? artifact_name : stanza
raise CaskError, "no such stanza '#{stanza_name}' on Cask '#{cask}'"
end