diff options
| author | Martin Schimandl | 2017-10-04 06:03:13 +0200 |
|---|---|---|
| committer | Martin Schimandl | 2017-11-10 20:16:38 +0100 |
| commit | be68f3d7b49f2e9b84e7230d5c22b6522992ea8c (patch) | |
| tree | 015c1fe3b88ae2e502d3f275279c43b8fc24567e /Library | |
| parent | b7a51eab6be0d62674231699d513db310df608b8 (diff) | |
| download | brew-be68f3d7b49f2e9b84e7230d5c22b6522992ea8c.tar.bz2 | |
Fix 'brew style' offenses
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb index 1b15d9386..b0812d27c 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb @@ -44,9 +44,8 @@ module Hbc @format = :to_yaml if yaml? - unless DSL::DSL_METHODS.include?(stanza) - raise ArgumentError, "Illegal stanza: '#{stanza}'" - end + return if DSL::DSL_METHODS.include?(stanza) + raise ArgumentError, "Illegal stanza: '#{stanza}'" end def run |
