diff options
| author | Adam Vandenberg | 2012-03-04 17:34:29 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-05 21:14:39 -0800 |
| commit | ee5193e3e855d4473258c17ccc49ab1fd37d357b (patch) | |
| tree | 405338c712a09daec4dcd29f306210455b790f12 /Library | |
| parent | 09d23d91efd9a91af6798e485490f7a228c32eb1 (diff) | |
| download | brew-ee5193e3e855d4473258c17ccc49ab1fd37d357b.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 |
