feat(read-chunk): ensure function is properly named

This commit is contained in:
Julien Fontanet 2021-04-07 14:02:50 +02:00
parent 479973bf06
commit a7ba6add39

View File

@ -1,4 +1,4 @@
exports.readChunk = (stream, size) =>
const readChunk = (stream, size) =>
size === 0
? Promise.resolve(Buffer.alloc(0))
: new Promise((resolve, reject) => {
@ -27,3 +27,4 @@ exports.readChunk = (stream, size) =>
stream.on('readable', onReadable)
onReadable()
})
exports.readChunk = readChunk