ci: formt

This commit is contained in:
Barrett Ruth 2026-03-05 22:39:56 -05:00
parent 512146f8c9
commit 600aa89ec7

View file

@ -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