aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-14 22:33:13 +0100
committerGitHub2017-03-14 22:33:13 +0100
commit7685618a1c110e5430a29c75f44fd3d4aee006e8 (patch)
tree7bd503f84186817321a50506f2781e1af071fce0 /Library/Homebrew
parent5c991f6941145156b9c26d23cce2af79b134eaef (diff)
parent4f558f186a3f48e3ea385afddc3fd9dc37e791ba (diff)
downloadbrew-7685618a1c110e5430a29c75f44fd3d4aee006e8.tar.bz2
Merge pull request #2342 from reitermarkus/cask-dsl-param
Remove `dsl` parameter from `Cask::new`.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cask.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb
index 8b39bdfd5..3f8da25b7 100644
--- a/Library/Homebrew/cask/lib/hbc/cask.rb
+++ b/Library/Homebrew/cask/lib/hbc/cask.rb
@@ -7,10 +7,10 @@ module Hbc
extend Forwardable
attr_reader :token, :sourcefile_path
- def initialize(token, sourcefile_path: nil, dsl: nil, &block)
+ def initialize(token, sourcefile_path: nil, &block)
@token = token
@sourcefile_path = sourcefile_path
- @dsl = dsl || DSL.new(@token)
+ @dsl = DSL.new(@token)
return unless block_given?
@dsl.instance_eval(&block)
@dsl.language_eval