Skip to content

Commit 54f6b29

Browse files
danbevgibfahn
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 <anna@addaleax.net> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 4d826f0 commit 54f6b29

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
@@ -1356,7 +1356,7 @@ void SecureContext::GetCertificate(const FunctionCallbackInfo<Value>& args) {
13561356
else
13571357
cert = wrap->issuer_;
13581358
if (cert == nullptr)
1359-
return args.GetReturnValue().Set(Null(env->isolate()));
1359+
return args.GetReturnValue().SetNull();
13601360

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

0 commit comments

Comments
 (0)