From 0e0c1973aba896496f899f880576d0f017c6498b Mon Sep 17 00:00:00 2001 From: Murat Dogan Date: Fri, 22 Nov 2024 20:03:16 +0100 Subject: [PATCH] delete whitespaces --- src/polyfill/RTCDataChannel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/polyfill/RTCDataChannel.ts b/src/polyfill/RTCDataChannel.ts index 6092b13..d757ed6 100644 --- a/src/polyfill/RTCDataChannel.ts +++ b/src/polyfill/RTCDataChannel.ts @@ -72,12 +72,12 @@ export default class RTCDataChannel extends EventTarget implements globalThis.RT }); this.#dataChannel.onMessage((data) => { - if (ArrayBuffer.isView(data)) { + if (ArrayBuffer.isView(data)) { if (this.binaryType == 'arraybuffer') data = data.buffer; else - data = Buffer.from(data.buffer); - } + data = Buffer.from(data.buffer); + } this.dispatchEvent(new MessageEvent('message', { data })); });