Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ecf7b07

Browse filesBrowse files
VoltrexKeyvaruyadorno
authored andcommitted
tls: use logical OR operator
Use the logical OR operator instead of the ternary operator where applicable. PR-URL: #44236 Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Feng Yu <F3n67u@outlook.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 2cf3ce8 commit ecf7b07
Copy full SHA for ecf7b07

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎lib/internal/tls/secure-context.js‎

Copy file name to clipboardExpand all lines: lib/internal/tls/secure-context.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function configSecureContext(context, options = kEmptyObject, name = 'options')
265265
if (pfx !== undefined && pfx !== null) {
266266
if (ArrayIsArray(pfx)) {
267267
ArrayPrototypeForEach(pfx, (val) => {
268-
const raw = val.buf ? val.buf : val;
268+
const raw = val.buf || val;
269269
const pass = val.passphrase || passphrase;
270270
if (pass !== undefined && pass !== null) {
271271
context.loadPKCS12(toBuf(raw), toBuf(pass));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.