fix: collapse consecutive str::replace calls to satisfy clippy
This commit is contained in:
@@ -212,7 +212,7 @@ fn run_agent_pty_blocking(
|
||||
// Count existing session files for this worktree to detect budget exhaustion.
|
||||
let session_dir = format!(
|
||||
"/home/huskies/.claude/projects/-workspace--huskies-worktrees-{}/",
|
||||
story_id.replace('_', "-").replace('.', "-")
|
||||
story_id.replace(['_', '.'], "-")
|
||||
);
|
||||
let session_count = std::fs::read_dir(&session_dir)
|
||||
.map(|d| d.filter(|e| e.as_ref().map(|e| e.path().extension().is_some_and(|ext| ext == "jsonl")).unwrap_or(false)).count())
|
||||
|
||||
Reference in New Issue
Block a user