Skip to content

Commit e8d6a4b

Browse files
Remove brackets around chunks
Co-authored-by: Daniel Lando <daniel.sorridi@gmail.com>
1 parent c2cc706 commit e8d6a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function * batch (readable, fn, batchSize) {
6161
for await (const chunk of readable) {
6262
chunks.push(fn(chunk))
6363
if (chunks.length === batchSize) {
64-
yield (chunks)
64+
yield chunks
6565
chunks = []
6666
}
6767
}

0 commit comments

Comments
 (0)