1
0

Fix linter errors

This commit is contained in:
Stefan Rakel
2023-12-11 14:16:23 +01:00
parent cd92ad32ce
commit 1d7f44983c

View File

@@ -139,7 +139,6 @@ local function findChildren(startCheckbox)
table.insert(children, checkbox) table.insert(children, checkbox)
end end
end end
return children
end end
local function updateFromChildren(checkbox) local function updateFromChildren(checkbox)
@@ -147,8 +146,6 @@ local function updateFromChildren(checkbox)
if not children then if not children then
return return
end end
local total = 0
local checked = 0
for _, child in ipairs(children) do for _, child in ipairs(children) do
if not child.checked then if not child.checked then
setCheckbox(checkbox, false) setCheckbox(checkbox, false)
@@ -170,7 +167,7 @@ end
local function switchAndUpdateCheckbox() local function switchAndUpdateCheckbox()
local lineNum = vim.fn.line(".") local lineNum = vim.fn.line(".")
checkbox = switchOrAddCheckbox(lineNum) local checkbox = switchOrAddCheckbox(lineNum)
if checkbox then if checkbox then
-- Update children -- Update children
updateChildren(checkbox) updateChildren(checkbox)
@@ -186,4 +183,3 @@ end
return { return {
checkbox = switchAndUpdateCheckbox checkbox = switchAndUpdateCheckbox
} }