diff options
| author | Jack Nagel | 2014-06-03 11:32:26 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-03 11:32:26 -0500 |
| commit | f1808cd66d0a1197679772c3cfe1457224fc6c21 (patch) | |
| tree | ee66f85a6f6c0673242bfae1cef6b4fce16482fb /Library | |
| parent | 0e0bee9c50332195a2601ea0df16e1f2cd92664c (diff) | |
| download | brew-f1808cd66d0a1197679772c3cfe1457224fc6c21.tar.bz2 | |
Don't coerce value to string unnecessarily
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/os/mac/version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb index e19ecae70..d40c94bcd 100644 --- a/Library/Homebrew/os/mac/version.rb +++ b/Library/Homebrew/os/mac/version.rb @@ -23,7 +23,7 @@ module OS def <=>(other) @comparison_cache.fetch(other) do - v = SYMBOLS.fetch(other, other.to_s) + v = SYMBOLS.fetch(other) { other.to_s } @comparison_cache[other] = super(Version.new(v)) end end |
