Skip to content

Commit 7d87877

Browse files
tniessentargos
authored andcommitted
src: avoid strcmp in favor of operator==
PR-URL: #53439 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
1 parent ac8adeb commit 7d87877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_keys.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ void KeyObjectHandle::InitJWK(const FunctionCallbackInfo<Value>& args) {
10331033

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

1036-
if (strcmp(*kty_string, "oct") == 0) {
1036+
if (kty_string == "oct") {
10371037
// Secret key
10381038
key->data_ = ImportJWKSecretKey(env, input);
10391039
if (!key->data_) {

0 commit comments

Comments
 (0)