diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index 8b39bdfd5e..3f8da25b7f 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