ci: format

This commit is contained in:
Barrett Ruth 2026-03-12 21:01:11 -04:00
parent 1472b2f333
commit fb633294dc
3 changed files with 25 additions and 10 deletions

View file

@ -1192,7 +1192,10 @@ function M.archive(arg)
log.debug(('archive: days=%d cutoff=%s total_tasks=%d'):format(days, cutoff, #tasks))
local count = 0
for _, task in ipairs(tasks) do
if (task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled') and task['end'] then
if
(task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled')
and task['end']
then
if task['end'] < cutoff then
count = count + 1
end
@ -1213,7 +1216,10 @@ function M.archive(arg)
function()
local kept = {}
for _, task in ipairs(tasks) do
if (task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled') and task['end'] then
if
(task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled')
and task['end']
then
if task['end'] < cutoff then
goto skip
end