invert condition
This commit is contained in:
parent
09d23d91ef
commit
ee5193e3e8
@ -629,11 +629,10 @@ private
|
|||||||
end
|
end
|
||||||
|
|
||||||
def set_instance_variable(type)
|
def set_instance_variable(type)
|
||||||
unless instance_variable_defined? "@#{type}"
|
return if instance_variable_defined? "@#{type}"
|
||||||
class_value = self.class.send(type)
|
class_value = self.class.send(type)
|
||||||
instance_variable_set("@#{type}", class_value) if class_value
|
instance_variable_set("@#{type}", class_value) if class_value
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def method_added method
|
def method_added method
|
||||||
raise 'You cannot override Formula.brew' if method == 'brew'
|
raise 'You cannot override Formula.brew' if method == 'brew'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user