optimize: fix mypy lint

This commit is contained in:
James R. Barlow
2021-11-13 14:48:00 -08:00
parent 01c7895044
commit 3810e576ff
+1 -1
View File
@@ -411,7 +411,7 @@ def _optimize_jpeg(args: Tuple[Xref, Path, Path, int]) -> Tuple[Xref, Optional[P
if opt_jpg.stat().st_size > in_jpg.stat().st_size:
log.debug("xref %s, jpeg, made larger - skip", xref)
opt_jpg.unlink()
opt_jpg = None
return xref, None
return xref, opt_jpg