Skip to content

Commit 6ff9027

Browse files
aduh95danielleadams
authored andcommitted
tls: add trailing commas in source files
PR-URL: #46715 Reviewed-By: Debadree Chatterjee <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent 7349708 commit 6ff9027

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

lib/.eslintrc.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ overrides:
287287
- ./internal/structured_clone.js
288288
- ./internal/test/*.js
289289
- ./internal/test_runner/**/*.js
290-
- ./internal/tls/secure-context.js
290+
- ./internal/tls/*.js
291291
- ./internal/util/parse_args/*.js
292292
- ./internal/v8_prof_processor.js
293293
- ./internal/vm.js
@@ -301,6 +301,7 @@ overrides:
301301
- ./stream/*.js
302302
- ./sys.js
303303
- ./test.js
304+
- ./tls.js
304305
- ./url.js
305306
- ./util/*.js
306307
rules:

lib/_tls_wrap.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const {
7979
ERR_TLS_REQUIRED_SERVER_NAME,
8080
ERR_TLS_SESSION_ATTACK,
8181
ERR_TLS_SNI_FROM_SERVER,
82-
ERR_TLS_INVALID_STATE
82+
ERR_TLS_INVALID_STATE,
8383
} = codes;
8484
const { onpskexchange: kOnPskExchange } = internalBinding('symbols');
8585
const {
@@ -97,7 +97,7 @@ const {
9797
validateUint32,
9898
} = require('internal/validators');
9999
const {
100-
InternalX509Certificate
100+
InternalX509Certificate,
101101
} = require('internal/crypto/x509');
102102
const traceTls = getOptionValue('--trace-tls');
103103
const tlsKeylog = getOptionValue('--tls-keylog');
@@ -653,7 +653,7 @@ function defineHandleReading(socket, handle) {
653653
},
654654
set: (value) => {
655655
socket[kRes].reading = value;
656-
}
656+
},
657657
});
658658
}
659659

@@ -1379,7 +1379,7 @@ Server.prototype.setSecureContext = function(options) {
13791379

13801380
Server.prototype._getServerData = function() {
13811381
return {
1382-
ticketKeys: this.getTicketKeys().toString('hex')
1382+
ticketKeys: this.getTicketKeys().toString('hex'),
13831383
};
13841384
};
13851385

@@ -1615,7 +1615,7 @@ exports.connect = function connect(...args) {
16151615
ciphers: tls.DEFAULT_CIPHERS,
16161616
checkServerIdentity: tls.checkServerIdentity,
16171617
minDHSize: 1024,
1618-
...options
1618+
...options,
16191619
};
16201620

16211621
if (!options.keepAlive)

lib/internal/tls/secure-pair.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class SecurePair extends EventEmitter {
7171
isServer,
7272
requestCert,
7373
rejectUnauthorized,
74-
...options
74+
...options,
7575
});
7676
this.cleartext.once('secure', () => this.emit('secure'));
7777
}

lib/tls.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const {
4949
const {
5050
ERR_TLS_CERT_ALTNAME_FORMAT,
5151
ERR_TLS_CERT_ALTNAME_INVALID,
52-
ERR_OUT_OF_RANGE
52+
ERR_OUT_OF_RANGE,
5353
} = require('internal/errors').codes;
5454
const internalUtil = require('internal/util');
5555
internalUtil.assertCrypto();

0 commit comments

Comments
 (0)