Software /
code /
prosody
Diff
util/dataforms.lua @ 6672:d6a60e74f773
util.dataforms: Rename unused loop counter to '_' [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:43:51 +0100 |
parent | 6668:f6f39c2f1b1f |
child | 6777:5de6b93d0190 |
line wrap: on
line diff
--- a/util/dataforms.lua Wed May 06 19:43:28 2015 +0100 +++ b/util/dataforms.lua Wed May 06 19:43:51 2015 +0100 @@ -32,7 +32,7 @@ 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 });