From 13c2681d55a89cd01a72b722d009c5b809d9df5f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 22 Oct 2013 13:07:09 -0500 Subject: Remove "double negative" condition --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 59f815553..b94ec7c3e 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -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 -- cgit v1.2.3