Skip to content
Snippets Groups Projects
Commit 83d4ac50 authored by Jack Nagel's avatar Jack Nagel
Browse files

Remove "double negative" condition

parent 63e1c71c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment