diff options
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/dsl.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/dsl.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/dsl.rb b/Library/Homebrew/cask/lib/hbc/dsl.rb index 92245e8fb..112ceb943 100644 --- a/Library/Homebrew/cask/lib/hbc/dsl.rb +++ b/Library/Homebrew/cask/lib/hbc/dsl.rb @@ -211,10 +211,10 @@ module Hbc # depends_on uses a load method so that multiple stanzas can be merged def depends_on(*args) - return @depends_on if args.empty? @depends_on ||= DSL::DependsOn.new + return @depends_on if args.empty? begin - @depends_on.load(*args) unless args.empty? + @depends_on.load(*args) rescue RuntimeError => e raise CaskInvalidError.new(token, e) end |
