Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
tuwukee committed Sep 18, 2024
1 parent 733855b commit 781786b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/jwt_sessions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ def jwt_options
end

def algorithm=(algo)
unless algo == NONE
algorithm = JWT::JWA.resolve(algo)
raise Errors::Malconfigured, "algorithm #{algo} is not supported" unless algorithm
end
algorithm = JWT::JWA.resolve(algo)
raise Errors::Malconfigured, "algorithm #{algo} is not supported" unless algorithm

@algorithm = algo
end
Expand Down

0 comments on commit 781786b

Please sign in to comment.