| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f495ab3 commit 5a6d80f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -544,7 +544,6 @@ Buffer.isEncoding = function isEncoding(encoding) { | |||
| 544 | 544 | Buffer[kIsEncodingSymbol] = Buffer.isEncoding; | |
| 545 | 545 | ||
| 546 | 546 | Buffer.concat = function concat(list, length) { | |
| 547 | - let i; | ||
| 548 | 547 | if (!ArrayIsArray(list)) { | |
| 549 | 548 | throw new ERR_INVALID_ARG_TYPE('list', 'Array', list); | |
| 550 | 549 | } | |
@@ -554,7 +553,7 @@ Buffer.concat = function concat(list, length) { | |||
| 554 | 553 | ||
| 555 | 554 | if (length === undefined) { | |
| 556 | 555 | length = 0; | |
| 557 | - for (i = 0; i < list.length; i++) { | ||
| 556 | + for (let i = 0; i < list.length; i++) { | ||
| 558 | 557 | if (list[i].length) { | |
| 559 | 558 | length += list[i].length; | |
| 560 | 559 | } | |
@@ -565,7 +564,7 @@ Buffer.concat = function concat(list, length) { | |||
| 565 | 564 | ||
| 566 | 565 | const buffer = Buffer.allocUnsafe(length); | |
| 567 | 566 | let pos = 0; | |
| 568 | - for (i = 0; i < list.length; i++) { | ||
| 567 | + for (let i = 0; i < list.length; i++) { | ||
| 569 | 568 | const buf = list[i]; | |
| 570 | 569 | if (!isUint8Array(buf)) { | |
| 571 | 570 | // TODO(BridgeAR): This should not be of type ERR_INVALID_ARG_TYPE. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments