diff --git a/src/crypto/crypto_keys.cc b/src/crypto/crypto_keys.cc index c5dd2fb8fce40f..a4979cf5586a7b 100644 --- a/src/crypto/crypto_keys.cc +++ b/src/crypto/crypto_keys.cc @@ -1033,7 +1033,7 @@ void KeyObjectHandle::InitJWK(const FunctionCallbackInfo& 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_) {