Skip to content

Commit 3f5c7fe

Browse files
committed
refactor: rename variable to be more general
1 parent a2f7359 commit 3f5c7fe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

_extensions/lua-env/lua-env-filter.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,26 @@ local function is_function_userdata(obj)
4848
end
4949

5050
local function get_values(obj)
51-
local quarto_array = {}
51+
local values_array = {}
5252
if not is_empty(obj) then
5353
if not is_type_simple(obj) and not is_function_userdata(obj) then
5454
for k, v in pairs(obj) do
5555
if not is_empty(v) then
5656
if not is_type_simple(v) and not is_function_userdata(v) then
57-
local quarto_array_temp = get_values(v)
58-
if not is_empty(quarto_array_temp) then
59-
quarto_array[k] = quarto_array_temp
57+
local values_array_temp = get_values(v)
58+
if not is_empty(values_array_temp) then
59+
values_array[k] = values_array_temp
6060
end
6161
elseif pandoc.utils.type(v) ~= "table" and not is_function_userdata(v) then
62-
quarto_array[k] = v
62+
values_array[k] = v
6363
end
6464
end
6565
end
6666
elseif pandoc.utils.type(obj) ~= "table" and not is_function_userdata(obj) then
67-
quarto_array[pandoc.utils.stringify(obj)] = obj
67+
values_array[pandoc.utils.stringify(obj)] = obj
6868
end
6969
end
70-
return quarto_array
70+
return values_array
7171
end
7272

7373
function Meta(meta)

0 commit comments

Comments
 (0)