Return early

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2024-01-20 21:23:08 +11:00 committed by GitHub
parent f7701e6596
commit 99d851957f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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