1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Prefer #zero? to #== 0

This commit is contained in:
Erik Michaels-Ober 2016-08-08 10:56:10 -07:00
parent 2c334ed6a9
commit 3c2584704d

View file

@ -246,7 +246,7 @@ module OmniAuth
end
def on_path?(path)
current_path.casecmp(path) == 0
current_path.casecmp(path).zero?
end
def options_request?