ci: formt
This commit is contained in:
parent
512146f8c9
commit
600aa89ec7
1 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue