Skip to content

Commit

Permalink
Prefer #is_a? over === for readability and style consistency
Browse files Browse the repository at this point in the history
Co-authored-by: Santiago Rodriguez <[email protected]>
  • Loading branch information
elquimista and santiagorodriguez96 authored Nov 8, 2023
1 parent 9e28c97 commit c61a600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webauthn/authenticator_assertion_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def self.from_client(response, relying_party: WebAuthn.configuration.relying_par
encoder = relying_party.encoder

user_handle =
if response["userHandle"] && String === response["userHandle"]
if response["userHandle"] && response["userHandle"].is_a? String
encoder.decode(response["userHandle"])
end

Expand Down

0 comments on commit c61a600

Please sign in to comment.