Skip to content

Commit

Permalink
Fix indentation as per 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 61f3fd5 commit 0616d34
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/jwt/decode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ def options_includes_algo_in_header?
def allowed_algorithms
# Order is very important - first check for string keys, next for symbols
algos = if @options.key?('algorithm')
@options['algorithm']
elsif @options.key?(:algorithm)
@options[:algorithm]
elsif @options.key?('algorithms')
@options['algorithms']
elsif @options.key?(:algorithms)
@options[:algorithms]
else
[]
end
@options['algorithm']
elsif @options.key?(:algorithm)
@options[:algorithm]
elsif @options.key?('algorithms')
@options['algorithms']
elsif @options.key?(:algorithms)
@options[:algorithms]
else
[]
end
Array(algos).map(&:upcase)
end

Expand Down

0 comments on commit 0616d34

Please sign in to comment.