rubocop issues - Cleaning up (#8912)
* cleanup pass * undo mistakes * fixed. * revert
This commit is contained in:
parent
a00ce8c92c
commit
f194857ac9
15 changed files with 33 additions and 33 deletions
|
@ -2,7 +2,7 @@ require 'open-uri'
|
|||
|
||||
module OpenURI
|
||||
def self.redirectable?(uri1, uri2) # :nodoc:
|
||||
uri1.scheme.downcase == uri2.scheme.downcase ||
|
||||
uri1.scheme.casecmp(uri2.scheme).zero? ||
|
||||
(/\A(?:http|https|ftp)\z/i =~ uri1.scheme && /\A(?:http|https|ftp)\z/i =~ uri2.scheme)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue