diff options
| author | Markus Reiter | 2016-10-23 14:26:17 +0200 | 
|---|---|---|
| committer | Markus Reiter | 2016-10-23 14:32:04 +0200 | 
| commit | ceec5a82c15cf636c8953da15ae73fbc882c5424 (patch) | |
| tree | 244bc727093921abcbafc1a5ad843efa9f7ccce0 /Library/Homebrew/cask/lib/hbc/cask.rb | |
| parent | 9f513cc60cb6d4875dcd2ef1f53a70d7f41f8fa0 (diff) | |
| download | brew-ceec5a82c15cf636c8953da15ae73fbc882c5424.tar.bz2 | |
Use guard clauses.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cask.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cask.rb | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index 6f005c036..cb0fdb665 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -11,10 +11,9 @@ module Hbc        @token = token        @sourcefile_path = sourcefile_path        @dsl = dsl || DSL.new(@token) -      if block_given? -        @dsl.instance_eval(&block) -        @dsl.language_eval -      end +      return unless block_given? +      @dsl.instance_eval(&block) +      @dsl.language_eval      end      DSL::DSL_METHODS.each do |method_name|  | 
