diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b5e687f..4efbae3 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -111,13 +111,6 @@ Style/BlockDelimiters: Exclude: - 'lib/sharepoint/client.rb' -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: is_a?, kind_of? -Style/ClassCheck: - Exclude: - - 'lib/sharepoint/client.rb' - Style/DocumentDynamicEvalDefinition: Exclude: - 'lib/sharepoint/client.rb' diff --git a/lib/sharepoint/client.rb b/lib/sharepoint/client.rb index ff54456..6824dd0 100644 --- a/lib/sharepoint/client.rb +++ b/lib/sharepoint/client.rb @@ -592,7 +592,7 @@ def string_not_blank?(object) def valid_config_uri? if @config.uri and @config.uri.is_a? String uri = URI.parse(@config.uri) - uri.kind_of?(URI::HTTP) || uri.kind_of?(URI::HTTPS) + uri.is_a?(URI::HTTP) || uri.is_a?(URI::HTTPS) else false end