Phase 9 R1a fixup: drop dead if-let wrapping around mkdir

This commit is contained in:
Omar Sobh
2026-07-15 03:48:24 -07:00
parent a3fe1d147c
commit 5c1d962bf2
+1 -3
View File
@@ -1151,9 +1151,7 @@ impl RpcRouter {
return Ok(HandlerOutcome::Error(ErrorCode::InvalidRequest)) return Ok(HandlerOutcome::Error(ErrorCode::InvalidRequest))
} }
}; };
if let Some(parent) = Some(root.as_path()) { let _ = tokio::fs::create_dir_all(&root).await;
let _ = tokio::fs::create_dir_all(parent).await;
}
let reply = let reply =
crate::cluster::repo_ensure::ensure_repo(&root, &req).await?; crate::cluster::repo_ensure::ensure_repo(&root, &req).await?;
let json = serde_json::to_vec(&reply) let json = serde_json::to_vec(&reply)