about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorashleyhull-versent <ashley.hull@versent.com.au>2018-10-08 13:50:11 +1100
committerEugen Rochko <eugen@zeonfederated.com>2018-10-08 04:50:11 +0200
commitf194857ac9eeb85f9b27c056c556038aee23cb43 (patch)
treefa6f5dd3df450849f85924b7abbfdb40f73f036b /config
parenta00ce8c92c06f42109aad5cfe65d46862cf037bb (diff)
rubocop issues - Cleaning up (#8912)
* cleanup pass

* undo mistakes

* fixed.

* revert
Diffstat (limited to 'config')
-rw-r--r--config/initializers/open_uri_redirection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/open_uri_redirection.rb b/config/initializers/open_uri_redirection.rb
index ea2dcffea..e9de85bdc 100644
--- a/config/initializers/open_uri_redirection.rb
+++ b/config/initializers/open_uri_redirection.rb
@@ -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