Skip to content

Commit 1648190

Browse files
pd4d10aduh95
andauthored
Apply suggestions from code review
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent fce76fe commit 1648190

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/_http_agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const { once } = require('internal/util');
5858
const {
5959
validateNumber,
6060
validateOneOf,
61-
validateString
61+
validateString,
6262
} = require('internal/validators');
6363

6464
const kOnKeylog = Symbol('onkeylog');

lib/_tls_wrap.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,9 @@ function TLSSocket(socket, opts) {
471471
process.emitWarning('Enabling --trace-tls can expose sensitive data in ' +
472472
'the resulting log.');
473473
}
474-
} else
474+
} else {
475475
validateBoolean(enableTrace, 'options.enableTrace');
476+
}
476477

477478
if (tlsOptions.ALPNProtocols)
478479
tls.convertALPNProtocols(tlsOptions.ALPNProtocols, tlsOptions);

lib/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ const {
6262

6363
const {
6464
validateAbortSignal,
65+
validateBoolean,
6566
validateFunction,
66-
validateBoolean
6767
} = require('internal/validators');
6868

6969
const kCapture = Symbol('kCapture');

0 commit comments

Comments
 (0)