summaryrefslogtreecommitdiff
path: root/lib/omni_auth
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-06-01 02:43:47 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-06-01 13:46:46 +0800
commit39b6f31c66ff51451033ff84a2832731065cd28d (patch)
tree0554167eb4e6133390e77016139bfe5c8b39ba3b /lib/omni_auth
parentdb40a7c4e359052313b9a7bf104aa4e9586deada (diff)
downloadgitlab-ce-39b6f31c66ff51451033ff84a2832731065cd28d.tar.gz
Eliminate constants warnings by:
* Replace `require` or `require_relative` with `require_dependency` * Remove unneeded `autoload`
Diffstat (limited to 'lib/omni_auth')
-rw-r--r--lib/omni_auth/strategies/jwt.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/omni_auth/strategies/jwt.rb b/lib/omni_auth/strategies/jwt.rb
index 2349b2a28aa..ebdb5c7faf0 100644
--- a/lib/omni_auth/strategies/jwt.rb
+++ b/lib/omni_auth/strategies/jwt.rb
@@ -3,7 +3,7 @@ require 'jwt'
module OmniAuth
module Strategies
- class JWT
+ class Jwt
ClaimInvalid = Class.new(StandardError)
include OmniAuth::Strategy
@@ -56,7 +56,5 @@ module OmniAuth
fail! :claim_invalid, e
end
end
-
- class Jwt < JWT; end
end
end