onyx-tasks/crates/onyx-core/src
Claude 12adfdc532
refactor(storage): drop unreachable error in dedup loop
The dedup loop wrapped its winner in `Option<Task>` and then mapped the
`None` case to `Error::InvalidData("Empty dedup entries for task")`.
That branch is unreachable: `by_id` is built by pushing every entry of
`file_tasks` into the vector for its UUID, so every group has at least
one entry, and the `len() > 1` branch keeps the first element after
`drain(1..)`.

Replace the spurious error with `expect` calls that document the
invariant and let the dedup loop yield `Task` directly instead of
`Option<Task>`.
2026-04-27 07:23:12 +00:00
..
config.rs refactor(config): reuse storage::atomic_write for save_to_file 2026-04-25 07:27:25 +00:00
error.rs Add tests for models.rs, error.rs, and repository.rs edge cases 2026-04-06 11:50:52 +00:00
google_tasks.rs fix(google_tasks): surface metadata write failures 2026-04-27 07:22:27 +00:00
lib.rs refactor: deduplicate filename sanitization logic 2026-04-16 07:23:49 +00:00
models.rs the kebab menu calls the date on tasks a due date, but it's not a due date... it's just a date. can we make sure the codebase, documentation and everything is consistent about this? 2026-04-14 07:19:27 -07:00
repository.rs test: cover CLI workspace resolver, date picker, saturating version 2026-04-17 16:32:22 +00:00
storage.rs refactor(storage): drop unreachable error in dedup loop 2026-04-27 07:23:12 +00:00
sync.rs perf(sync): avoid cloning upload payload 2026-04-27 07:22:01 +00:00
webdav.rs Fix nine GUI bugs found during local-workspace smoke test 2026-04-17 14:24:59 +00:00