diff --git a/Sources/ZIPFoundation/FileManager+ZIP.swift b/Sources/ZIPFoundation/FileManager+ZIP.swift index b14d22d3..17fcb2d7 100644 --- a/Sources/ZIPFoundation/FileManager+ZIP.swift +++ b/Sources/ZIPFoundation/FileManager+ZIP.swift @@ -131,8 +131,7 @@ extension FileManager { } func verifyChecksumIfNecessary() throws { - guard skipCRC32 == false, crc32 == entry.checksum - else { + if skipCRC32 == false, crc32 != entry.checksum { throw Archive.ArchiveError.invalidCRC32 } }