diff --git a/src/archive.rs b/src/archive.rs index ac7d715..1b57745 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -284,11 +284,7 @@ impl Archive { self.reader.seek(SeekFrom::Start(offset))?; let header = &self.entry_headers[index].header; let size = header.size(); - if size % 2 != 0 { - self.padding = true; - } else { - self.padding = false; - } + self.padding = size % 2 != 0; self.next_entry_index = index + 1; Ok(Entry { header,