From 43eae4929b9f6770f024d0ba9a2a3af50beff52e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 2 Apr 2020 13:17:49 +0200 Subject: [PATCH] remove ts annotations as I don't want to convert the whole file now --- src/crypto/verification/QRCode.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/crypto/verification/QRCode.js b/src/crypto/verification/QRCode.js index 6490dcebc..34d510164 100644 --- a/src/crypto/verification/QRCode.js +++ b/src/crypto/verification/QRCode.js @@ -236,21 +236,21 @@ export class QRCodeData { static _generateBuffer(qrData) { let buf = Buffer.alloc(0); // we'll concat our way through life - const appendByte = (b: number) => { + const appendByte = (b) => { const tmpBuf = Buffer.from([b]); buf = Buffer.concat([buf, tmpBuf]); }; - const appendInt = (i: number) => { + const appendInt = (i) => { const tmpBuf = Buffer.alloc(2); tmpBuf.writeInt16BE(i, 0); buf = Buffer.concat([buf, tmpBuf]); }; - const appendStr = (s: string, enc: string, withLengthPrefix = true) => { + const appendStr = (s, enc, withLengthPrefix = true) => { const tmpBuf = Buffer.from(s, enc); if (withLengthPrefix) appendInt(tmpBuf.byteLength); buf = Buffer.concat([buf, tmpBuf]); }; - const appendEncBase64 = (b64: string) => { + const appendEncBase64 = (b64) => { const b = decodeBase64(b64); const tmpBuf = Buffer.from(b); buf = Buffer.concat([buf, tmpBuf]);