From 6d0a5550fec905eed97f74b1328547076a7d7fe5 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Tue, 11 Aug 2026 20:56:51 -0600 Subject: [PATCH] style: Removed some redundant comments --- src/config/paths.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/config/paths.rs b/src/config/paths.rs index bbbf6b1..44589d9 100644 --- a/src/config/paths.rs +++ b/src/config/paths.rs @@ -437,10 +437,6 @@ pub(crate) fn remove_rag_sidecars(dir: &Path, name: &str) -> Result<()> { if duckdb_path.exists() { let _ = remove_file(&duckdb_path); } - // DuckDB keeps its write-ahead log in a sibling file and only removes it on a - // clean close, so a crash or a kill leaves one behind. Deleting the database - // without it strands a `.wal` that the next RAG created under the same name - // would inherit as if it were its own. let wal_path = dir.join(format!("{name}.duckdb.wal")); if wal_path.exists() { let _ = remove_file(&wal_path); @@ -905,7 +901,6 @@ mod tests { fn remove_rag_sidecars_removes_duckdb_wal_and_mixin() { let root = sidecar_temp_dir("rag-sidecars-both"); let duckdb = root.join("docs.duckdb"); - // DuckDB leaves this behind whenever it was not closed cleanly. let wal = root.join("docs.duckdb.wal"); let mixin = root.join("docs.sbx-mixin.yaml"); fs::write(&duckdb, "db").unwrap();