aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-07-17 03:22:57 -0500
committerJack Nagel2012-07-17 03:23:59 -0500
commitc71002a4a34251c71c99f6c962a89d64d6ad9f21 (patch)
treed3993c266216c020b36aec8c88beef7356716851 /Library
parentcf9e25cfa55452558ec319bc0baf96ebbca83c73 (diff)
downloadbrew-c71002a4a34251c71c99f6c962a89d64d6ad9f21.tar.bz2
Formula: mirrors are always non-nil
Since 3ee9b7bd88a2d9017cdf005b10567a1d6d8ec211 ("SoftwareSpec: initialize @mirrors"), @active_spec.mirrors will always be non-nil. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 3de5e5593..e91fe388e 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?