Skip to content

Commit

Permalink
tls: add trailing commas in source files
Browse files Browse the repository at this point in the history
PR-URL: #46715
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
aduh95 authored and danielleadams committed Apr 5, 2023
1 parent 7349708 commit 6ff9027
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion lib/.eslintrc.yaml
Expand Up @@ -287,7 +287,7 @@ overrides:
- ./internal/structured_clone.js
- ./internal/test/*.js
- ./internal/test_runner/**/*.js
- ./internal/tls/secure-context.js
- ./internal/tls/*.js
- ./internal/util/parse_args/*.js
- ./internal/v8_prof_processor.js
- ./internal/vm.js
Expand All @@ -301,6 +301,7 @@ overrides:
- ./stream/*.js
- ./sys.js
- ./test.js
- ./tls.js
- ./url.js
- ./util/*.js
rules:
Expand Down
10 changes: 5 additions & 5 deletions lib/_tls_wrap.js
Expand Up @@ -79,7 +79,7 @@ const {
ERR_TLS_REQUIRED_SERVER_NAME,
ERR_TLS_SESSION_ATTACK,
ERR_TLS_SNI_FROM_SERVER,
ERR_TLS_INVALID_STATE
ERR_TLS_INVALID_STATE,
} = codes;
const { onpskexchange: kOnPskExchange } = internalBinding('symbols');
const {
Expand All @@ -97,7 +97,7 @@ const {
validateUint32,
} = require('internal/validators');
const {
InternalX509Certificate
InternalX509Certificate,
} = require('internal/crypto/x509');
const traceTls = getOptionValue('--trace-tls');
const tlsKeylog = getOptionValue('--tls-keylog');
Expand Down Expand Up @@ -653,7 +653,7 @@ function defineHandleReading(socket, handle) {
},
set: (value) => {
socket[kRes].reading = value;
}
},
});
}

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

Server.prototype._getServerData = function() {
return {
ticketKeys: this.getTicketKeys().toString('hex')
ticketKeys: this.getTicketKeys().toString('hex'),
};
};

Expand Down Expand Up @@ -1615,7 +1615,7 @@ exports.connect = function connect(...args) {
ciphers: tls.DEFAULT_CIPHERS,
checkServerIdentity: tls.checkServerIdentity,
minDHSize: 1024,
...options
...options,
};

if (!options.keepAlive)
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/tls/secure-pair.js
Expand Up @@ -71,7 +71,7 @@ class SecurePair extends EventEmitter {
isServer,
requestCert,
rejectUnauthorized,
...options
...options,
});
this.cleartext.once('secure', () => this.emit('secure'));
}
Expand Down
2 changes: 1 addition & 1 deletion lib/tls.js
Expand Up @@ -49,7 +49,7 @@ const {
const {
ERR_TLS_CERT_ALTNAME_FORMAT,
ERR_TLS_CERT_ALTNAME_INVALID,
ERR_OUT_OF_RANGE
ERR_OUT_OF_RANGE,
} = require('internal/errors').codes;
const internalUtil = require('internal/util');
internalUtil.assertCrypto();
Expand Down

0 comments on commit 6ff9027

Please sign in to comment.