diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-16 13:08:50 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-17 18:50:55 +0900 |
commit | 0b632b9cddef76514635ad460d40b3a8d346602f (patch) | |
tree | 33a2b39d30bb0c3de6600de132c7f6a4cda4e775 /lib/rubygems/source_list.rb | |
parent | 567db6064baf572e3510c0322ec536ad84c81d57 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/ClassCheck
https://github.com/rubygems/rubygems/commit/1c3356a872
Diffstat (limited to 'lib/rubygems/source_list.rb')
-rw-r--r-- | lib/rubygems/source_list.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/source_list.rb b/lib/rubygems/source_list.rb index 1e0b905f19..3c1397d834 100644 --- a/lib/rubygems/source_list.rb +++ b/lib/rubygems/source_list.rb @@ -126,7 +126,7 @@ class Gem::SourceList # Gem::Source or a source URI. def include?(other) - if other.kind_of? Gem::Source + if other.is_a? Gem::Source @sources.include? other else @sources.find {|x| x.uri.to_s == other.to_s } @@ -137,7 +137,7 @@ class Gem::SourceList # Deletes +source+ from the source list which may be a Gem::Source or a URI. def delete(source) - if source.kind_of? Gem::Source + if source.is_a? Gem::Source @sources.delete source else @sources.delete_if {|x| x.uri.to_s == source.to_s } |