Skip to content

Commit 99d5145

Browse files
rapsealkclaude
andcommitted
refactor(agent): Drop redundant bool() wrapper around equality check
_is_linuxkit() wrapped a `==` comparison in bool(...), which is a no-op since == already returns bool. Refs #11220 Refs #11223 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9cc2b7e commit 99d5145

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ai/backend/agent/docker/intrinsic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _warn_cgroup_fallback_once(plugin: str, container_id: str) -> None:
9898

9999

100100
def _is_linuxkit(local_config: Mapping[str, Any]) -> bool:
101-
return bool(local_config["agent"]["docker-mode"] == "linuxkit")
101+
return cast(str, local_config["agent"]["docker-mode"]) == "linuxkit"
102102

103103

104104
# The list of pruned fstype when checking the filesystem usage statistics.

0 commit comments

Comments
 (0)