From 3f5c7fe1a2c696641b4474d494dcee70a4fb4021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Canouil?= <8896044+mcanouil@users.noreply.github.com> Date: Tue, 24 Jan 2023 23:37:15 +0100 Subject: [PATCH] refactor: rename variable to be more general --- _extensions/lua-env/lua-env-filter.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_extensions/lua-env/lua-env-filter.lua b/_extensions/lua-env/lua-env-filter.lua index fc6c8fc..e85ced2 100644 --- a/_extensions/lua-env/lua-env-filter.lua +++ b/_extensions/lua-env/lua-env-filter.lua @@ -48,26 +48,26 @@ local function is_function_userdata(obj) end local function get_values(obj) - local quarto_array = {} + local values_array = {} if not is_empty(obj) then if not is_type_simple(obj) and not is_function_userdata(obj) then for k, v in pairs(obj) do if not is_empty(v) then if not is_type_simple(v) and not is_function_userdata(v) then - local quarto_array_temp = get_values(v) - if not is_empty(quarto_array_temp) then - quarto_array[k] = quarto_array_temp + local values_array_temp = get_values(v) + if not is_empty(values_array_temp) then + values_array[k] = values_array_temp end elseif pandoc.utils.type(v) ~= "table" and not is_function_userdata(v) then - quarto_array[k] = v + values_array[k] = v end end end elseif pandoc.utils.type(obj) ~= "table" and not is_function_userdata(obj) then - quarto_array[pandoc.utils.stringify(obj)] = obj + values_array[pandoc.utils.stringify(obj)] = obj end end - return quarto_array + return values_array end function Meta(meta)