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,12 +361,11 @@ module Gem
|
|||
end
|
||||
|
||||
def lock_name
|
||||
@lock_name ||=
|
||||
if platform == Gem::Platform::RUBY
|
||||
"#{name} (#{version})"
|
||||
else
|
||||
"#{name} (#{version}-#{platform})"
|
||||
end
|
||||
if platform == Gem::Platform::RUBY
|
||||
"#{name} (#{version})"
|
||||
else
|
||||
"#{name} (#{version}-#{platform})"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue