Skip to content

Commit befb163

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 <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent e515355 commit befb163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
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)