Skip to content

Commit aae0020

Browse files
aduh95MylesBorins
authored andcommittedFeb 20, 2023
lib: enforce use of trailing commas for functions
PR-URL: #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>
1 parent 6b21170 commit aae0020

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+391
-391
lines changed
 

‎lib/.eslintrc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ rules:
55
comma-dangle: [error, {
66
arrays: always-multiline,
77
exports: always-multiline,
8-
functions: only-multiline,
8+
functions: always-multiline,
99
imports: always-multiline,
1010
objects: only-multiline,
1111
}]

‎lib/_http_agent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ function installListeners(agent, s, options) {
396396
// TODO(ronag): Always destroy, even if not in free list.
397397
const sockets = agent.freeSockets;
398398
if (ArrayPrototypeSome(ObjectKeys(sockets), (name) =>
399-
ArrayPrototypeIncludes(sockets[name], s)
399+
ArrayPrototypeIncludes(sockets[name], s),
400400
)) {
401401
return s.destroy();
402402
}

0 commit comments

Comments
 (0)