Remove "double negative" condition
This commit is contained in:
parent
63e1c71c50
commit
83d4ac5092
@ -56,7 +56,7 @@ class Formula
|
|||||||
|
|
||||||
def set_spec(name)
|
def set_spec(name)
|
||||||
spec = self.class.send(name)
|
spec = self.class.send(name)
|
||||||
if block_given? && yield(spec) || !spec.url.nil?
|
if block_given? && yield(spec) || spec.url
|
||||||
spec.owner = self
|
spec.owner = self
|
||||||
instance_variable_set("@#{name}", spec)
|
instance_variable_set("@#{name}", spec)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user