Skip to content

Commit 99d8519

Browse files
radarherehugovk
andauthored
Return early
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent f7701e6 commit 99d8519

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def djpeg_available() -> bool:
283283
subprocess.check_call(["djpeg", "-version"])
284284
return True
285285
except subprocess.CalledProcessError: # pragma: no cover
286-
pass
286+
return False
287287
return False
288288

289289

@@ -293,7 +293,7 @@ def cjpeg_available() -> bool:
293293
subprocess.check_call(["cjpeg", "-version"])
294294
return True
295295
except subprocess.CalledProcessError: # pragma: no cover
296-
pass
296+
return False
297297
return False
298298

299299

0 commit comments

Comments
 (0)