diff options
| author | Markus Reiter | 2017-06-02 12:26:23 +0200 | 
|---|---|---|
| committer | Markus Reiter | 2017-06-03 23:50:31 +0200 | 
| commit | 7c0a3a1233fe41a0a8510e4cd5055a0a4b799ff8 (patch) | |
| tree | 4e052b69e47c9fa3d24e0a2da9a1426ceb39da0e /Library/Homebrew/cmd/style.rb | |
| parent | 98959f1fb9c667abde593dcd92128aed5367d29a (diff) | |
| download | brew-7c0a3a1233fe41a0a8510e4cd5055a0a4b799ff8.tar.bz2 | |
Fix `rubocop` in `brew audit`.
Diffstat (limited to 'Library/Homebrew/cmd/style.rb')
| -rw-r--r-- | Library/Homebrew/cmd/style.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index e469c47bb..7da71749c 100644 --- a/Library/Homebrew/cmd/style.rb +++ b/Library/Homebrew/cmd/style.rb @@ -120,7 +120,7 @@ module Homebrew        # exitstatus can also be nil if RuboCop process crashes, e.g. due to        # native extension problems.        # JSON needs to be at least 2 characters. -      if !status.success? || json.to_s.length < 2 +      if !(0..1).cover?(status.exitstatus) || json.to_s.length < 2          raise "Error running `rubocop --format json #{args.join " "}`"        end        RubocopResults.new(JSON.parse(json)) | 
