Changeset

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
parents 6671:2d5e2ed44c22
children 6673:b123fcd65d2e
files util/dataforms.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 });