From c71002a4a34251c71c99f6c962a89d64d6ad9f21 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 17 Jul 2012 03:22:57 -0500 Subject: [PATCH] Formula: mirrors are always non-nil Since 3ee9b7bd88a2d9017cdf005b10567a1d6d8ec211 ("SoftwareSpec: initialize @mirrors"), @active_spec.mirrors will always be non-nil. Signed-off-by: Jack Nagel --- Library/Homebrew/formula.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 3de5e55933..e91fe388e0 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -85,10 +85,10 @@ class Formula end end - def url; @active_spec.url; end - def version; @active_spec.version; end - def specs; @active_spec.specs; end - def mirrors; @active_spec.mirrors or []; end + def url; @active_spec.url; end + def version; @active_spec.version; end + def specs; @active_spec.specs; end + def mirrors; @active_spec.mirrors; end # if the dir is there, but it's empty we consider it not installed def installed?