aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-04 17:34:29 -0800
committerAdam Vandenberg2012-03-05 21:14:39 -0800
commitca0d798b4d2d909882e621d7f97f3400e2a481fc (patch)
treed7d761f0570404df3fd258180b5b865e8c8990f9 /Library
parenta6a56e2f724dd3a60a2b5b504f48ac568096e2dc (diff)
downloadhomebrew-ca0d798b4d2d909882e621d7f97f3400e2a481fc.tar.bz2
invert condition
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