[rubygems/rubygems] util/rubocop -A --only Style/ClassCheck

1c3356a872
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 13:08:50 +09:00
parent 567db6064b
commit 0b632b9cdd
13 changed files with 19 additions and 19 deletions

View file

@ -356,7 +356,7 @@ class Gem::RequestSet::GemDependencyAPI
# Use the given tag for git:, gist: and github: dependencies.
def gem(name, *requirements)
options = requirements.pop if requirements.last.kind_of?(Hash)
options = requirements.pop if requirements.last.is_a?(Hash)
options ||= {}
options[:git] = @current_repository if @current_repository