diff options
| author | Dominyk Tiller | 2016-05-30 20:41:17 +0100 |
|---|---|---|
| committer | Dominyk Tiller | 2016-05-31 13:33:09 +0100 |
| commit | 0a7fcf29797469f7cd9eaa653ba3e54e412e4583 (patch) | |
| tree | 83fa803b628852006b72ec11fbcdbb0e0bfa9b1a /Library/Homebrew/cmd | |
| parent | 331fdba29d9364ba20e99e1fa8db074ac482ca9c (diff) | |
| download | brew-0a7fcf29797469f7cd9eaa653ba3e54e412e4583.tar.bz2 | |
audit: appease rubocop
Closes #302.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 614b76464..4a09a69c1 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -303,7 +303,7 @@ class FormulaAuditor same_name_tap_formulae.delete(full_name) - if same_name_tap_formulae.size > 0 + unless same_name_tap_formulae.empty? problem "Formula name conflicts with #{same_name_tap_formulae.join ", "}" end end @@ -415,7 +415,7 @@ class FormulaAuditor desc = formula.desc - unless desc && desc.length > 0 + unless desc && !desc.empty? problem "Formula should have a desc (Description)." return end @@ -1198,7 +1198,7 @@ class ResourceAuditor problem "Don't use #{$1}use_mirror in SourceForge urls (url is #{p})." end - if p =~ /\/download$/ + if p.end_with?("/download") problem "Don't use /download in SourceForge urls (url is #{p})." end |
