From b42a9dc1bedddf342ff11ca8e7a5f53b85402262 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Wed, 15 May 2024 10:52:13 +1200 Subject: [PATCH] Make luacheck happy --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index f8858a3..de64829 100644 --- a/init.lua +++ b/init.lua @@ -903,7 +903,7 @@ function flow.get_context() return current_ctx end -local function insert_style_elem(tree, i, node, props, sels) +local function insert_style_elem(tree, idx, node, props, sels) local base_selector = node.name or node.type local selectors = {} if sels then @@ -921,7 +921,7 @@ local function insert_style_elem(tree, i, node, props, sels) end - table.insert(tree, i, { + table.insert(tree, idx, { type = node.name and "style" or "style_type", selectors = selectors, props = props, @@ -936,7 +936,7 @@ local function insert_style_elem(tree, i, node, props, sels) reset_props[k] = "" end - table.insert(tree, i + 2, { + table.insert(tree, idx + 2, { type = "style_type", selectors = selectors, props = reset_props,