mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
util.dataforms: Rename unused loop counter to '_' [luacheck]
This commit is contained in:
parent
7804493089
commit
d0741cdda2
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ function form_t.form(layout, data, formtype)
|
|||
if layout.instructions then
|
||||
form:tag("instructions"):text(layout.instructions):up();
|
||||
end
|
||||
for n, field in ipairs(layout) do
|
||||
for _, field in ipairs(layout) do
|
||||
local field_type = field.type or "text-single";
|
||||
-- Add field tag
|
||||
form:tag("field", { type = field_type, var = field.name, label = field.label });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue