mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 11:03:58 +02:00
[rubygems/rubygems] Don't memoize in NameTuple lock_name
The result of this is already memoized and no other NameTuple
methods memoize.
b7cce0c64a
This commit is contained in:
parent
51ab9ebca1
commit
0166d56f2b
1 changed files with 5 additions and 6 deletions
|
@ -361,7 +361,6 @@ module Gem
|
||||||
end
|
end
|
||||||
|
|
||||||
def lock_name
|
def lock_name
|
||||||
@lock_name ||=
|
|
||||||
if platform == Gem::Platform::RUBY
|
if platform == Gem::Platform::RUBY
|
||||||
"#{name} (#{version})"
|
"#{name} (#{version})"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue