diff options
| author | L. E. Segovia | 2017-11-02 09:56:51 -0300 |
|---|---|---|
| committer | L. E. Segovia | 2017-11-02 09:56:51 -0300 |
| commit | eaae7f3a5b7dcce0d6c4a3238547996e886b7144 (patch) | |
| tree | 09878b7703fac672a82b94d94270a9b8c7797aeb /Library | |
| parent | 7f398d01b8d5970677d490e120be616aa596ef8b (diff) | |
| download | brew-eaae7f3a5b7dcce0d6c4a3238547996e886b7144.tar.bz2 | |
Fix last remaining style issues
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/audit.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/audit.rb b/Library/Homebrew/cask/lib/hbc/audit.rb index 51316baec..d757b0623 100644 --- a/Library/Homebrew/cask/lib/hbc/audit.rb +++ b/Library/Homebrew/cask/lib/hbc/audit.rb @@ -57,9 +57,8 @@ module Hbc add_warning "only a single preflight stanza is allowed" end - if cask.artifacts.count { |k| k.is_a?(Hbc::Artifact::PostflightBlock) && k.directives.key?(:postflight) } > 1 - add_warning "only a single postflight stanza is allowed" - end + return unless cask.artifacts.count { |k| k.is_a?(Hbc::Artifact::PostflightBlock) && k.directives.key?(:postflight) } > 1 + add_warning "only a single postflight stanza is allowed" end def check_single_uninstall_zap @@ -77,9 +76,8 @@ module Hbc add_warning "only a single uninstall_postflight stanza is allowed" end - if cask.artifacts.count { |k| k.is_a?(Hbc::Artifact::Zap) } > 1 - add_warning "only a single zap stanza is allowed" - end + return unless cask.artifacts.count { |k| k.is_a?(Hbc::Artifact::Zap) } > 1 + add_warning "only a single zap stanza is allowed" end def check_required_stanzas |
