[rubygems/rubygems] Removed unnecessary disabling of Lint/DuplicateMethods

https://github.com/rubygems/rubygems/commit/225fdf0b2e
This commit is contained in:
Hiroshi SHIBATA 2023-06-14 16:51:20 +09:00
parent 2c219ab215
commit 503b9bf1d4
2 changed files with 2 additions and 2 deletions

View File

@ -2340,7 +2340,7 @@ end
ensure
File.class_eval do
remove_method :write
alias_method :write, :original_write # rubocop:disable Lint/DuplicateMethods
alias_method :write, :original_write
remove_method :original_write
end
end

View File

@ -71,7 +71,7 @@ class TestGemPlatform < Gem::TestCase
Gem.platforms = platforms
class << Gem::Platform
remove_method :match_gem?
alias_method :match_gem?, :original_match_gem? # rubocop:disable Lint/DuplicateMethods
alias_method :match_gem?, :original_match_gem?
remove_method :original_match_gem?
end
end