Skip to content

Commit 4b8ecb7

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 e09698e commit 4b8ecb7

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
@@ -140,12 +140,12 @@ def _supported_depth(metadata: dict) -> int | None:
140140
return depth if depth in range(1, 4) else None
141141

142142

143-
def _analysis_depth_or_default(output_dir: Path, default: int = _DEFAULT_DEPTH) -> int:
143+
def _analysis_depth_or_default(output_dir: Path, default_depth: int = _DEFAULT_DEPTH) -> int:
144144
metadata = _load_metadata(output_dir / "analysis.json")
145145
if not isinstance(metadata, dict):
146-
return default
146+
return default_depth
147147
depth = _supported_depth(metadata)
148-
return depth if depth is not None else default
148+
return depth if depth is not None else default_depth
149149

150150

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

0 commit comments

Comments
 (0)