aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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