The _CompressedFile class is designed to work with compressed files, and it
makes no sense to use it for uncompress files. So let's assume that the
decompression function is always present and remove the useless
"if self._decompress_func" check.
Change-Id: Ie427f1507801525f29efd103dfd4cfdf76291b7e
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
self._eof = True
break
- if self._decompress_func:
- buf = self._decompress_func(buf)
- if not buf:
- continue
+ buf = self._decompress_func(buf)
+ if not buf:
+ continue
assert len(self._buffer) == 0
assert self._buffer_pos == 0