Remove redundant check [skip ci]

Unreachable
This commit is contained in:
larabr 2024-08-23 18:45:27 +02:00
parent b0873eb98d
commit 3f6615a52b

View File

@ -222,9 +222,6 @@ export class Message {
} catch (e) {} } catch (e) {}
await Promise.all(decryptionKeyPackets.map(async function(decryptionKeyPacket) { await Promise.all(decryptionKeyPackets.map(async function(decryptionKeyPacket) {
if (!decryptionKeyPacket || decryptionKeyPacket.isDummy()) {
return;
}
if (!decryptionKeyPacket.isDecrypted()) { if (!decryptionKeyPacket.isDecrypted()) {
throw new Error('Decryption key is not decrypted.'); throw new Error('Decryption key is not decrypted.');
} }