fix: handle skipping in options correctly

This commit is contained in:
Erica Marigold 2025-01-06 05:55:02 +00:00
parent de96193a47
commit 121869ad3d
Signed by: DevComp
GPG key ID: 429EF1C337871656

View file

@ -20,7 +20,7 @@ type CrcValidationOptions = {
local function validateCrc(decompressed: buffer, validation: CrcValidationOptions) local function validateCrc(decompressed: buffer, validation: CrcValidationOptions)
-- Unless skipping validation is requested, we verify the checksum -- Unless skipping validation is requested, we verify the checksum
if validation.skip then if not validation.skip then
local computed = crc32(decompressed) local computed = crc32(decompressed)
assert( assert(
validation.expected == computed, validation.expected == computed,