From 872b87a4e0213444f0cb05435a4156f73869e7be Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 16 Nov 2018 00:43:01 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Remove=20this?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/streams/arrayBufferToStream.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssn/streams/arrayBufferToStream.ts b/src/ssn/streams/arrayBufferToStream.ts index 5d57eb9..518a08e 100644 --- a/src/ssn/streams/arrayBufferToStream.ts +++ b/src/ssn/streams/arrayBufferToStream.ts @@ -20,7 +20,7 @@ export default function arrayBufferToStream(arrayBuffer: ArrayBuffer, offset: nu do { //If end is reached if (position >= endPosition - 1) { - this.push(null); + outStream.push(null); return; } @@ -32,7 +32,7 @@ export default function arrayBufferToStream(arrayBuffer: ArrayBuffer, offset: nu //chunk.fill(arrayBuffer, position); //const chunk = Buffer.from(arrayBuffer, position, chunkSize); position += chunk.length; - needMoreData = this.push(chunk); + needMoreData = outStream.push(chunk); } while (needMoreData); }, });