mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Return early
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
f7701e6596
commit
99d851957f
|
@ -283,7 +283,7 @@ def djpeg_available() -> bool:
|
|||
subprocess.check_call(["djpeg", "-version"])
|
||||
return True
|
||||
except subprocess.CalledProcessError: # pragma: no cover
|
||||
pass
|
||||
return False
|
||||
return False
|
||||
|
||||
|
||||
|
@ -293,7 +293,7 @@ def cjpeg_available() -> bool:
|
|||
subprocess.check_call(["cjpeg", "-version"])
|
||||
return True
|
||||
except subprocess.CalledProcessError: # pragma: no cover
|
||||
pass
|
||||
return False
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user