aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 44cf0d3b8..151aeb2b6 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -629,10 +629,9 @@ private
end
def set_instance_variable(type)
- unless instance_variable_defined? "@#{type}"
- class_value = self.class.send(type)
- instance_variable_set("@#{type}", class_value) if class_value
- end
+ return if instance_variable_defined? "@#{type}"
+ class_value = self.class.send(type)
+ instance_variable_set("@#{type}", class_value) if class_value
end
def method_added method