Skip to content

Commit 5be29a1

Browse files
refactor: rename default depth parameter
Amp-Thread-ID: https://ampcode.com/threads/T-019ecb81-dc76-76cb-8bf3-22a366c9be41 Co-authored-by: Amp <amp@ampcode.com>
1 parent 7b13c3c commit 5be29a1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/engine_adapter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ def _supported_depth(metadata: dict) -> int | None:
105105
return depth if depth in range(1, 4) else None
106106

107107

108-
def _analysis_depth_or_default(output_dir: Path, default: int = _DEFAULT_DEPTH) -> int:
108+
def _analysis_depth_or_default(output_dir: Path, default_depth: int = _DEFAULT_DEPTH) -> int:
109109
metadata = _load_metadata(output_dir / "analysis.json")
110110
if not isinstance(metadata, dict):
111-
return default
111+
return default_depth
112112
depth = _supported_depth(metadata)
113-
return depth if depth is not None else default
113+
return depth if depth is not None else default_depth
114114

115115

116116
def _metadata_commit(metadata: dict) -> str:

0 commit comments

Comments
 (0)