Skip to content

Commit

Permalink
single quoted strings
Browse files Browse the repository at this point in the history
  • Loading branch information
martinemde authored and excpt committed Sep 1, 2020
1 parent 7cc9ede commit 9b08568
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jwt/jwk/key_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def key_for(kid)
jwk = resolve_key(kid)

unless jwk
raise ::JWT::DecodeError, "No keys found in jwks" if jwks_keys.empty?
raise ::JWT::DecodeError, 'No keys found in jwks' if jwks_keys.empty?
raise ::JWT::DecodeError, "Could not find public key for kid #{kid}"
end

Expand Down
2 changes: 1 addition & 1 deletion lib/jwt/jwk/rsa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.import(jwk_data)
jwk_n = jwk_data[:n] || jwk_data['n']
jwk_e = jwk_data[:e] || jwk_data['e']

raise JWT::JWKError, "Key format is invalid for RSA" unless jwk_n && jwk_e
raise JWT::JWKError, 'Key format is invalid for RSA' unless jwk_n && jwk_e

if imported_key.respond_to?(:set_key)
imported_key.set_key(OpenSSL::BN.new(::Base64.urlsafe_decode64(jwk_n), BINARY),
Expand Down

0 comments on commit 9b08568

Please sign in to comment.