diff options
| author | Jack Nagel | 2014-07-01 21:57:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-01 21:57:30 -0500 |
| commit | 3236e231cba16658a26005183ec1cd0ae7ac6bee (patch) | |
| tree | 495b83cad00efb1ef0bf1bca68082fcb48ba7df4 /Library/Homebrew/cmd/audit.rb | |
| parent | 5809710a8309a5b6960051e8a569abc78bb070f2 (diff) | |
| download | homebrew-3236e231cba16658a26005183ec1cd0ae7ac6bee.tar.bz2 | |
Use predicate methods instead of inspecting the tags array
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 67d9faec1..ad4132726 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -148,9 +148,9 @@ class FormulaAuditor dep.options.reject do |opt| next true if dep_f.build.has_option?(opt.name) dep_f.requirements.detect do |r| - if r.tags.include? :recommended + if r.recommended? opt.name == "with-#{r.name}" - elsif r.tags.include? :optional + elsif r.optional? opt.name == "without-#{r.name}" end end |
