From 600aa89ec72af326ba421f9ce8357fa4da76f925 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 5 Mar 2026 22:39:56 -0500 Subject: [PATCH] ci: formt --- lua/pending/sync/gtasks.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lua/pending/sync/gtasks.lua b/lua/pending/sync/gtasks.lua index 0c0239e..9fc7459 100644 --- a/lua/pending/sync/gtasks.lua +++ b/lua/pending/sync/gtasks.lua @@ -364,15 +364,19 @@ local function detect_remote_deletions(s, seen_remote_ids, fetched_list_ids, now local extra = task._extra or {} local gtid = extra['_gtasks_task_id'] local list_id = extra['_gtasks_list_id'] - if task.status ~= 'deleted' - and gtid and list_id + if + task.status ~= 'deleted' + and gtid + and list_id and fetched_list_ids[list_id] and not seen_remote_ids[gtid] then task._extra['_gtasks_task_id'] = nil task._extra['_gtasks_list_id'] = nil task._extra['_gtasks_synced_at'] = nil - if next(task._extra) == nil then task._extra = nil end + if next(task._extra) == nil then + task._extra = nil + end task.modified = now_ts unlinked = unlinked + 1 end