aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formulary.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 8342c3ded..31a7fd51e 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -59,9 +59,7 @@ class Formulary
raise FormulaUnavailableError.new(name)
end
- if have_klass
- Formulary.get_formula_class(class_name)
- else
+ unless have_klass
STDERR.puts "#{$0} (#{self.class.name}): loading #{path}" if ARGV.debug?
begin
require path
@@ -73,13 +71,13 @@ class Formulary
raise if ARGV.debug? # let's see the REAL error
raise FormulaUnavailableError.new(name)
end
+ end
- klass = Formulary.get_formula_class(class_name)
- if klass == Formula || !(klass < Formula)
- raise FormulaUnavailableError.new(name)
- end
- klass
+ klass = Formulary.get_formula_class(class_name)
+ if klass == Formula || !(klass < Formula)
+ raise FormulaUnavailableError.new(name)
end
+ klass
end
end