From 3c2584704d70449254ace08317ac0f021059c93a Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Mon, 8 Aug 2016 10:56:10 -0700 Subject: [PATCH] Prefer #zero? to #== 0 --- lib/omniauth/strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/omniauth/strategy.rb b/lib/omniauth/strategy.rb index e095c22..ca0b60d 100644 --- a/lib/omniauth/strategy.rb +++ b/lib/omniauth/strategy.rb @@ -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?