不要怂,就是干,撸起袖子干!

Commit 14101e5e by Sohum Banerjea

pass Buffers by reference

1 parent 867c3745
Showing with 1 additions and 1 deletions
......@@ -1463,7 +1463,7 @@ module.exports = (function() {
return elem
}
// Unfortunately, lodash.cloneDeep doesn't preserve Buffer.isBuffer, which we have to rely on for binary data
if (Buffer.isBuffer(elem)) { return new Buffer(elem); }
if (Buffer.isBuffer(elem)) { return elem; }
// Otherwise return undefined, meaning, 'handle this lodash'
return undefined
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!