# HG changeset patch # User Matthew Wild # Date 1430937831 -3600 # Node ID d6a60e74f77367e1c69586afe71eabb172df3876 # Parent 2d5e2ed44c22754ce8ab5f3ecd5a15657f4132d7 util.dataforms: Rename unused loop counter to '_' [luacheck] diff -r 2d5e2ed44c22 -r d6a60e74f773 util/dataforms.lua --- 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 });