Prefer #zero? to #== 0

This commit is contained in:
Erik Michaels-Ober 2016-08-08 10:56:10 -07:00
parent 2c334ed6a9
commit 3c2584704d
1 changed files with 1 additions and 1 deletions

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?