Skip to content

Commit

Permalink
src: avoid strcmp in favor of operator==
Browse files Browse the repository at this point in the history
PR-URL: #53439
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
  • Loading branch information
tniessen authored and marco-ippolito committed Jul 19, 2024
1 parent faa5cac commit 9730d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/crypto_keys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ void KeyObjectHandle::InitJWK(const FunctionCallbackInfo<Value>& args) {

Utf8Value kty_string(env->isolate(), kty);

if (strcmp(*kty_string, "oct") == 0) {
if (kty_string == "oct") {
// Secret key
key->data_ = ImportJWKSecretKey(env, input);
if (!key->data_) {
Expand Down

0 comments on commit 9730d1e

Please sign in to comment.