♻️ Remove this

This commit is contained in:
C-3PO 2018-11-16 00:43:01 +01:00
parent 93b3d6c75d
commit 872b87a4e0
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -20,7 +20,7 @@ export default function arrayBufferToStream(arrayBuffer: ArrayBuffer, offset: nu
do { do {
//If end is reached //If end is reached
if (position >= endPosition - 1) { if (position >= endPosition - 1) {
this.push(null); outStream.push(null);
return; return;
} }
@ -32,7 +32,7 @@ export default function arrayBufferToStream(arrayBuffer: ArrayBuffer, offset: nu
//chunk.fill(arrayBuffer, position); //chunk.fill(arrayBuffer, position);
//const chunk = Buffer.from(arrayBuffer, position, chunkSize); //const chunk = Buffer.from(arrayBuffer, position, chunkSize);
position += chunk.length; position += chunk.length;
needMoreData = this.push(chunk); needMoreData = outStream.push(chunk);
} while (needMoreData); } while (needMoreData);
}, },
}); });