From 963cec8268d34ab0b1af821ccfa621e52a62ed98 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 17:50:31 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/utils/llama_cpp_update.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/studio/backend/utils/llama_cpp_update.py b/studio/backend/utils/llama_cpp_update.py index 18dec59743..0a38a04b36 100644 --- a/studio/backend/utils/llama_cpp_update.py +++ b/studio/backend/utils/llama_cpp_update.py @@ -243,9 +243,8 @@ def _source_build_status(binary: str, *, force_refresh: bool) -> Optional[dict]: # Offer only a STRICTLY newer build. Unknown installed version (version: 1 or # unparseable) stays "behind" so the involuntary source build still gets the # prebuilt, but a known build is never downgraded to an older walked-back release. - update_available = ( - latest_build is not None - and (installed_build is None or installed_build < latest_build) + update_available = latest_build is not None and ( + installed_build is None or installed_build < latest_build ) with _job_lock: job = dict(_job)