From 330e18bb171ebbe778e0909aa419940607c3da54 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 1 Jul 2014 21:57:30 -0500 Subject: Use predicate methods instead of inspecting the tags array --- Library/Homebrew/cmd/audit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/cmd') 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 -- cgit v1.2.3