diff options
| author | Adam Vandenberg | 2012-03-04 17:34:29 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-05 21:14:39 -0800 |
| commit | ca0d798b4d2d909882e621d7f97f3400e2a481fc (patch) | |
| tree | d7d761f0570404df3fd258180b5b865e8c8990f9 /Library | |
| parent | a6a56e2f724dd3a60a2b5b504f48ac568096e2dc (diff) | |
| download | homebrew-ca0d798b4d2d909882e621d7f97f3400e2a481fc.tar.bz2 | |
invert condition
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 7 |
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 |
