diff options
| author | Jack Nagel | 2014-07-01 21:57:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-01 21:57:30 -0500 |
| commit | 330e18bb171ebbe778e0909aa419940607c3da54 (patch) | |
| tree | 12291c63314677c7583def0fec2f0c31272c6865 /Library/Homebrew/cmd | |
| parent | 177eee419a455c3fc759d6a75c392f30be50a4dc (diff) | |
| download | brew-330e18bb171ebbe778e0909aa419940607c3da54.tar.bz2 | |
Use predicate methods instead of inspecting the tags array
Diffstat (limited to 'Library/Homebrew/cmd')
| -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 |
