refactor condition check

This commit is contained in:
sukhman
2025-02-19 00:14:54 +05:30
parent 69965a4d35
commit e5b47e899f

View File

@@ -182,7 +182,7 @@ export class DkimVerifier extends MessageParser {
async finalChunk() {
try {
if ((!this.headers || !this.bodyHashes.size) && !this.skipBodyHash) {
if (!this.headers || (!this.skipBodyHash && !this.bodyHashes.size)) {
return;
}