aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 83d37051a..10f2ab53f 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -171,15 +171,15 @@ class FormulaAuditor
end
end
- if formula.class < GithubGistFormula
+ if Object.const_defined?("GithubGistFormula") && formula.class < GithubGistFormula
problem "GithubGistFormula is deprecated, use Formula instead"
end
- if formula.class < ScriptFileFormula
+ if Object.const_defined?("ScriptFileFormula") && formula.class < ScriptFileFormula
problem "ScriptFileFormula is deprecated, use Formula instead"
end
- if formula.class < AmazonWebServicesFormula
+ if Object.const_defined?("AmazonWebServicesFormula") && formula.class < AmazonWebServicesFormula
problem "AmazonWebServicesFormula is deprecated, use Formula instead"
end
end