Prefer #zero? to #== 0
This commit is contained in:
parent
2c334ed6a9
commit
3c2584704d
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue