Skip to content

Commit

Permalink
Freeze constants
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields authored and anakinj committed Feb 9, 2021
1 parent 57b9ae9 commit 1525050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jwt/algos/none.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Algos
module None
module_function

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

Expand Down
2 changes: 1 addition & 1 deletion lib/jwt/algos/unsupported.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Algos
module Unsupported
module_function

SUPPORTED = []
SUPPORTED = [].freeze
def verify(*)
raise JWT::VerificationError, 'Algorithm not supported'
end
Expand Down

0 comments on commit 1525050

Please sign in to comment.