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 <panva.ip@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
  • Loading branch information
tniessen authored and targos committed Jun 20, 2024
1 parent ac8adeb commit 7d87877
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 7d87877

Please sign in to comment.