diff --git a/repak/src/entry.rs b/repak/src/entry.rs index 49f2185..2336185 100644 --- a/repak/src/entry.rs +++ b/repak/src/entry.rs @@ -176,7 +176,7 @@ impl Entry { assert!(self.blocks.is_some()); let blocks = self.blocks.as_ref().unwrap(); - if !blocks.len() == 1 || self.encrypted { + if blocks.len() > 1 || self.encrypted { for b in blocks { let block_size = b.end - b.start; writer.write_u32::(block_size.try_into().unwrap())?;