mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Fix eslint warnings (#2151)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
This commit is contained in:
parent
6cded14bdf
commit
9dfebbc949
75 changed files with 1110 additions and 931 deletions
|
@ -60,8 +60,8 @@ function processBlobParts(
|
|||
// instead of dynamic allocation.
|
||||
const uint8Arrays = toUint8Arrays(blobParts, normalizeLineEndingsToNative);
|
||||
const byteLength = uint8Arrays
|
||||
.map(u8 => u8.byteLength)
|
||||
.reduce((a, b) => a + b, 0);
|
||||
.map((u8): number => u8.byteLength)
|
||||
.reduce((a, b): number => a + b, 0);
|
||||
const ab = new ArrayBuffer(byteLength);
|
||||
const bytes = new Uint8Array(ab);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue