refactor: AgentProvider.dockerfile always returns Path, never None

The convention is that every provider declares a Dockerfile location;
callers that care whether the file actually exists check .is_file().
Drops all `is not None` guards on the property result.
This commit is contained in:
2026-06-08 06:06:51 +00:00
committed by didericis (codex)
parent e7bc59054b
commit 8ede486280
4 changed files with 15 additions and 24 deletions
@@ -95,7 +95,7 @@ def fetch_current_dockerfile(slug: str) -> str:
if override is not None:
return override
repo_dockerfile = get_provider("claude").dockerfile
if repo_dockerfile is not None and repo_dockerfile.is_file():
if repo_dockerfile.is_file():
return repo_dockerfile.read_text()
raise CapabilityApplyError(
f"no per-bottle Dockerfile for {slug} and no provider Dockerfile at "