diff options
author | Kentaro Takeyama <[email protected]> | 2024-08-10 14:03:59 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-08-15 17:16:25 +0900 |
commit | 2a933609e75aa87f27cf1c892a54389d3efed928 (patch) | |
tree | 3728636626e12138c5a9a8392fbe2ce221d8132f | |
parent | 8a7e6f6852740e989ef8f679db5631306466a4ed (diff) |
Delete unnecessary rubocop disable comment
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11357
-rw-r--r-- | lib/bundled_gems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb index 25c38b0e82..b1cc51c60c 100644 --- a/lib/bundled_gems.rb +++ b/lib/bundled_gems.rb @@ -65,7 +65,7 @@ module Gem::BUNDLED_GEMS [::Kernel.singleton_class, ::Kernel].each do |kernel_class| kernel_class.send(:alias_method, :no_warning_require, :require) kernel_class.send(:define_method, :require) do |name| - if message = ::Gem::BUNDLED_GEMS.warning?(name, specs: spec_names) # rubocop:disable Style/HashSyntax + if message = ::Gem::BUNDLED_GEMS.warning?(name, specs: spec_names) Kernel.warn message, uplevel: ::Gem::BUNDLED_GEMS.uplevel end kernel_class.send(:no_warning_require, name) |