util.dataforms: Rename unused loop counter to '_' [luacheck]
[prosody.git] / util / dataforms.lua
index 5f246ee8c8d3cb2facd1ae54c5b29107d67a45c7..9f2693b1fc2eae20db3898a00520394391b91281 100644 (file)
@@ -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 });