From 038e297aa2b73328500e495cdeb82b88d0157402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20K=C3=B6nig?= Date: Fri, 17 Nov 2023 10:42:57 +0100 Subject: [PATCH] chore: eslint fix --- src/encryption/CryptoEncryption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encryption/CryptoEncryption.ts b/src/encryption/CryptoEncryption.ts index af9b24f..9bedb00 100644 --- a/src/encryption/CryptoEncryption.ts +++ b/src/encryption/CryptoEncryption.ts @@ -203,7 +203,7 @@ export abstract class CryptoEncryption { if (typeof nonce !== "undefined") { CryptoValidation.checkNonceForAlgorithm(nonce, correctAlgorithm); publicnonce = nonce.buffer; - } else if (typeof cipher !== "undefined" && typeof cipher.nonce !== "undefined") { + } else if (typeof cipher.nonce !== "undefined") { publicnonce = cipher.nonce.buffer; } else { throw new CryptoError(