From d0741cdda29b437d96efbfd186c2d2eccf6ebafe Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 6 May 2015 19:43:51 +0100 Subject: util.dataforms: Rename unused loop counter to '_' [luacheck] --- util/dataforms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }); -- cgit v1.2.3