mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: enforce use of trailing commas for functions
PR-URL: https://github.com/nodejs/node/pull/46629 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
parent
3acdeb1f7a
commit
fe514bf960
109 changed files with 389 additions and 389 deletions
|
@ -609,7 +609,7 @@ function checkConnections() {
|
|||
|
||||
function connectionListener(socket) {
|
||||
defaultTriggerAsyncIdScope(
|
||||
getOrSetAsyncId(socket), connectionListenerInternal, this, socket
|
||||
getOrSetAsyncId(socket), connectionListenerInternal, this, socket,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -812,15 +812,15 @@ function onParserTimeout(server, socket) {
|
|||
const noop = () => {};
|
||||
const badRequestResponse = Buffer.from(
|
||||
`HTTP/1.1 400 ${STATUS_CODES[400]}\r\n` +
|
||||
'Connection: close\r\n\r\n', 'ascii'
|
||||
'Connection: close\r\n\r\n', 'ascii',
|
||||
);
|
||||
const requestTimeoutResponse = Buffer.from(
|
||||
`HTTP/1.1 408 ${STATUS_CODES[408]}\r\n` +
|
||||
'Connection: close\r\n\r\n', 'ascii'
|
||||
'Connection: close\r\n\r\n', 'ascii',
|
||||
);
|
||||
const requestHeaderFieldsTooLargeResponse = Buffer.from(
|
||||
`HTTP/1.1 431 ${STATUS_CODES[431]}\r\n` +
|
||||
'Connection: close\r\n\r\n', 'ascii'
|
||||
'Connection: close\r\n\r\n', 'ascii',
|
||||
);
|
||||
function socketOnError(e) {
|
||||
// Ignore further errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue