Remove (soon to be) obsolete check
Fix small typo
This commit is contained in:
parent
fea5350d52
commit
17e001bd30
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user