Skip to content

Commit

Permalink
Fix auto-code review
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields authored and anakinj committed Feb 9, 2021
1 parent 1525050 commit 0a3da66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/jwt/algos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module JWT
# Signature logic for JWT
module Algos
extend self

ALGOS = [
Algos::Hmac,
Algos::Ecdsa,
Expand Down
7 changes: 3 additions & 4 deletions lib/jwt/algos/none.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ module None
module_function

SUPPORTED = %w[none].freeze
def verify(*)
end

def sign(*)
end
def verify(*); end

def sign(*); end
end
end
end
1 change: 1 addition & 0 deletions lib/jwt/algos/unsupported.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Unsupported
module_function

SUPPORTED = [].freeze

def verify(*)
raise JWT::VerificationError, 'Algorithm not supported'
end
Expand Down

0 comments on commit 0a3da66

Please sign in to comment.