diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 59f8155533..b94ec7c3e8 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