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
commitf1808cd66d0a1197679772c3cfe1457224fc6c21 (patch)
treeee66f85a6f6c0673242bfae1cef6b4fce16482fb /Library
parent0e0bee9c50332195a2601ea0df16e1f2cd92664c (diff)
downloadbrew-f1808cd66d0a1197679772c3cfe1457224fc6c21.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