aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-06 19:43:51 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-06 19:43:51 +0100
commit31bbce98bde53e453c551e99f3f1e368faa44ec1 (patch)
tree8fbe40c85c8cd8a60ac1751ea2afc1218aa0fbe5
parent6f2f3dde36a37f8c8890ad4a9b9adc1c98b6469e (diff)
downloadprosody-31bbce98bde53e453c551e99f3f1e368faa44ec1.tar.gz
prosody-31bbce98bde53e453c551e99f3f1e368faa44ec1.zip
util.dataforms: Rename unused loop counter to '_' [luacheck]
-rw-r--r--util/dataforms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 5f246ee8..9f2693b1 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -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 });