Skip to content

Commit

Permalink
Update chunksDecode
Browse files Browse the repository at this point in the history
  • Loading branch information
ValchanOficial authored Feb 26, 2024
1 parent 16e49ff commit dc8d454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function consumeStart (consume) {
*/
function chunksDecode (chunks, length) {
if (chunks.length === 0 || length === 0) {
return ''
return JSON.stringify('')
}
const buffer = chunks.length === 1 ? chunks[0] : Buffer.concat(chunks, length)

Expand Down

0 comments on commit dc8d454

Please sign in to comment.