From 70fe7420cd88db985cc393a5521b868aedde64fe Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 20 Apr 2026 07:33:12 +0000 Subject: [PATCH] refactor(sync): remove dead .listdata.json guard in conflict path The `.listdata.json` check was unreachable: the branch is already gated on `parts[1].ends_with(".md")`, which `.listdata.json` fails. --- crates/onyx-core/src/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/onyx-core/src/sync.rs b/crates/onyx-core/src/sync.rs index 17c10ae..6eb2b57 100644 --- a/crates/onyx-core/src/sync.rs +++ b/crates/onyx-core/src/sync.rs @@ -753,7 +753,7 @@ async fn execute_action( // For .md task files inside a list dir, create a duplicate of the local version let parts: Vec<&str> = path.split('/').collect(); - if parts.len() == 2 && parts[1].ends_with(".md") && parts[1] != ".listdata.json" { + if parts.len() == 2 && parts[1].ends_with(".md") { let local_content = String::from_utf8_lossy(&local_data); if let Ok((frontmatter, description)) = parse_frontmatter_for_conflict(&local_content) { let original_id = frontmatter.id;