From f492bbd7963013741efde157fa94be20cdf16161 Mon Sep 17 00:00:00 2001 From: vaf Date: Mon, 16 Dec 2024 15:06:05 +0100 Subject: [PATCH] fix linter warnings --- packages/tutanota-crypto/lib/encryption/KeyEncryption.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/tutanota-crypto/lib/encryption/KeyEncryption.ts b/packages/tutanota-crypto/lib/encryption/KeyEncryption.ts index 3e04c4f8a69e..7f65519395c2 100644 --- a/packages/tutanota-crypto/lib/encryption/KeyEncryption.ts +++ b/packages/tutanota-crypto/lib/encryption/KeyEncryption.ts @@ -49,10 +49,10 @@ export type EncryptedRsaEccKeyPairs = { export function isEncryptedPqKeyPairs(keyPair: AbstractEncryptedKeyPair): keyPair is EncryptedPqKeyPairs { return ( - keyPair.pubEccKey!! && - keyPair.pubKyberKey!! && - keyPair.symEncPrivEccKey!! && - keyPair.symEncPrivKyberKey!! && + keyPair.pubEccKey != null && + keyPair.pubKyberKey != null && + keyPair.symEncPrivEccKey != null && + keyPair.symEncPrivKyberKey != null && keyPair.pubRsaKey == null && keyPair.symEncPrivRsaKey == null )