Changeset

7513:8a6c7c4b15fb

util.sql: remove unused one-letter loop variables [luacheck]
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 23 Jul 2016 18:22:05 +0800
parents 7512:7a655ff689b1
children 7514:ea58c0fe1cd7
files util/sql.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/sql.lua	Sat Jul 23 18:21:35 2016 +0800
+++ b/util/sql.lua	Sat Jul 23 18:22:05 2016 +0800
@@ -49,7 +49,7 @@
 
 function table_mt:__tostring()
 	local s = { 'name="'..self.__table__.name..'"' }
-	for i,col in ipairs(self.__table__) do
+	for _, col in ipairs(self.__table__) do
 		s[#s+1] = tostring(col);
 	end
 	return 'Table{ '..t_concat(s, ", ")..' }'
@@ -294,7 +294,7 @@
 	end
 	local success,err = self:execute(sql);
 	if not success then return success,err; end
-	for i,v in ipairs(table.__table__) do
+	for _, v in ipairs(table.__table__) do
 		if is_index(v) then
 			self:_create_index(v);
 		end