aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-10-22 13:07:09 -0500
committerJack Nagel2013-10-22 13:31:14 -0500
commit13c2681d55a89cd01a72b722d009c5b809d9df5f (patch)
treec45ed5a2912abea5c09994786a460f4b36af5715 /Library/Homebrew/formula.rb
parentfcf616c380d749d6fc40212626c6d9abfa46ce49 (diff)
downloadhomebrew-13c2681d55a89cd01a72b722d009c5b809d9df5f.tar.bz2
Remove "double negative" condition
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
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