aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-03 11:32:26 -0500
committerJack Nagel2014-06-03 11:32:26 -0500
commitf66db75ae315969da606ebf16cdb63a41a1db508 (patch)
tree02b0862df99c29773b7186b9a79ae714669f6afb /Library
parent222c186f9305ecf74ecff45471a7f75b05b6826c (diff)
downloadhomebrew-f66db75ae315969da606ebf16cdb63a41a1db508.tar.bz2
Don't coerce value to string unnecessarily
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/version.rb2
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