Skip to content

Commit

Permalink
[rubygems/rubygems] Removed unnecessary disabling of Lint/DuplicateMe…
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jun 14, 2023
1 parent 2c219ab commit 503b9bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_installer.rb
Expand Up @@ -2340,7 +2340,7 @@ def write(data)
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
Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_platform.rb
Expand Up @@ -71,7 +71,7 @@ def match_gem?(platform, gem_name)
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
Expand Down

0 comments on commit 503b9bf

Please sign in to comment.