Skip to content

Commit 9e50f17

Browse files
danbevMylesBorins
authored andcommitted
crypto: use SetNull instead of Set
This commit updates the only usage of Set(Null(env->isolate()) to use SetNull() instead which is used in other places in node_crypto.cc. PR-URL: #17521 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 5fc1e27 commit 9e50f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ void SecureContext::GetCertificate(const FunctionCallbackInfo<Value>& args) {
16021602
else
16031603
cert = wrap->issuer_;
16041604
if (cert == nullptr)
1605-
return args.GetReturnValue().Set(Null(env->isolate()));
1605+
return args.GetReturnValue().SetNull();
16061606

16071607
int size = i2d_X509(cert, nullptr);
16081608
Local<Object> buff = Buffer::New(env, size).ToLocalChecked();

0 commit comments

Comments
 (0)