From 92f6ec918bf0f4a289e43ce1f656dd03e814cd3b Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 29 Jan 2020 15:06:13 +0000 Subject: [PATCH] Appease the linter --- src/crypto/index.js | 6 +++++- src/crypto/verification/QRCode.js | 9 +-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/crypto/index.js b/src/crypto/index.js index 8a997238c..a76c158d9 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -41,7 +41,11 @@ import { import {SECRET_STORAGE_ALGORITHM_V1, SecretStorage} from './SecretStorage'; import {OutgoingRoomKeyRequestManager} from './OutgoingRoomKeyRequestManager'; import {IndexedDBCryptoStore} from './store/indexeddb-crypto-store'; -import {ReciprocateQRCode, SCAN_QR_CODE_METHOD, SHOW_QR_CODE_METHOD} from './verification/QRCode'; +import { + ReciprocateQRCode, + SCAN_QR_CODE_METHOD, + SHOW_QR_CODE_METHOD, +} from './verification/QRCode'; import {SAS} from './verification/SAS'; import {keyFromPassphrase} from './key_passphrase'; import {encodeRecoveryKey} from './recoverykey'; diff --git a/src/crypto/verification/QRCode.js b/src/crypto/verification/QRCode.js index f74ccc9cf..a4a37e0f0 100644 --- a/src/crypto/verification/QRCode.js +++ b/src/crypto/verification/QRCode.js @@ -22,16 +22,9 @@ limitations under the License. import {VerificationBase as Base} from "./Base"; import { - errorFactory, - newKeyMismatchError, newUnknownTransactionError, - newUserCancelledError, + newKeyMismatchError, newUserMismatchError, } from './Error'; -import * as qs from "qs"; - -const MATRIXTO_REGEXP = /^(?:https?:\/\/)?(?:www\.)?matrix\.to\/#\/([#@!+][^?]+)\?(.+)$/; - -const newQRCodeError = errorFactory("m.qr_code.invalid", "Invalid QR code"); export const SHOW_QR_CODE_METHOD = "m.qr_code.show.v1"; export const SCAN_QR_CODE_METHOD = "m.qr_code.scan.v1";