We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a136d56 commit 00abb81Copy full SHA for 00abb81
1 file changed
lib/internal/tls/secure-context.js
@@ -161,11 +161,9 @@ function configSecureContext(context, options = {}, name = 'options') {
161
for (let i = 0; i < key.length; ++i) {
162
const val = key[i];
163
const pem = (
164
- val !== undefined && val !== null &&
165
- val.pem !== undefined ? val.pem : val);
+ val?.pem !== undefined ? val.pem : val);
166
const pass = (
167
168
- val.passphrase !== undefined ? val.passphrase : passphrase);
+ val?.passphrase !== undefined ? val.passphrase : passphrase);
169
setKey(context, pem, pass, name);
170
}
171
} else {
0 commit comments