Remove "double negative" condition

This commit is contained in:
Jack Nagel 2013-10-22 13:07:09 -05:00
parent 63e1c71c50
commit 83d4ac5092

View File

@ -56,7 +56,7 @@ class Formula
def set_spec(name)
spec = self.class.send(name)
if block_given? && yield(spec) || !spec.url.nil?
if block_given? && yield(spec) || spec.url
spec.owner = self
instance_variable_set("@#{name}", spec)
end