diff options
| author | Jack Nagel | 2012-07-17 03:22:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-07-17 03:23:59 -0500 |
| commit | c71002a4a34251c71c99f6c962a89d64d6ad9f21 (patch) | |
| tree | d3993c266216c020b36aec8c88beef7356716851 /Library | |
| parent | cf9e25cfa55452558ec319bc0baf96ebbca83c73 (diff) | |
| download | brew-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.rb | 8 |
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? |
