Commit 6e887cc
lib,test: update let to const where applicable
As per the `prefer-const` eslint rule, few instances of `let` have been
identified to be better with `const`. This patch updates all those
instances.
Refer: #3118
PR-URL: #3152
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>1 parent 701e38c commit 6e887ccCopy full SHA for 6e887cc
File tree
Expand file treeCollapse file tree
10 files changed
+21
-20
lines changedOpen diff view settings
Filter options
- lib
- test
- parallel
- sequential
Expand file treeCollapse file tree
10 files changed
+21
-20
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
291 | 291 | |
292 | 292 | |
293 | 293 | |
294 | | - |
| 294 | + |
295 | 295 | |
296 | 296 | |
297 | 297 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
517 | 517 | |
518 | 518 | |
519 | 519 | |
520 | | - |
| 520 | + |
521 | 521 | |
522 | 522 | |
523 | 523 | |
|
Collapse file
test/parallel/test-async-wrap-check-providers.js
Copy file name to clipboardExpand all lines: test/parallel/test-async-wrap-check-providers.js+7-6Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
73 | 73 | |
74 | 74 | |
75 | 75 | |
76 | | - |
| 76 | + |
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
84 | 86 | |
85 | | - |
86 | 87 | |
87 | 88 | |
88 | 89 | |
|
Collapse file
test/parallel/test-buffer-zero-fill-reset.js
Copy file name to clipboardExpand all lines: test/parallel/test-buffer-zero-fill-reset.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
| 17 | + |
18 | 18 | |
19 | 19 | |
Collapse file
test/parallel/test-http-flush-headers.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-flush-headers.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | | - |
| 13 | + |
14 | 14 | |
15 | 15 | |
16 | 16 | |
|
Collapse file
test/parallel/test-http-response-multiheaders.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-response-multiheaders.js+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
| 20 | + |
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
26 | | - |
| 25 | + |
| 26 | + |
27 | 27 | |
28 | 28 | |
29 | 29 | |
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
48 | 48 | |
49 | 49 | |
50 | 50 | |
|
Collapse file
test/parallel/test-tls-socket-default-options.js
Copy file name to clipboardExpand all lines: test/parallel/test-tls-socket-default-options.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
36 | | - |
| 36 | + |
37 | 37 | |
38 | 38 | |
39 | 39 | |
|
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
135 | 135 | |
136 | 136 | |
137 | 137 | |
138 | | - |
| 138 | + |
139 | 139 | |
140 | 140 | |
141 | 141 | |
|
Collapse file
test/parallel/test-zlib-truncated.js
Copy file name to clipboardExpand all lines: test/parallel/test-zlib-truncated.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | | - |
| 29 | + |
30 | 30 | |
31 | 31 | |
32 | 32 | |
|
Collapse file
test/sequential/test-child-process-fork-getconnections.js
Copy file name to clipboardExpand all lines: test/sequential/test-child-process-fork-getconnections.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
| ||
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | | - |
| 45 | + |
46 | 46 | |
47 | 47 | |
48 | 48 | |
|
0 commit comments