From 8e2e80c3f3b5330f64ec0cce849a1b6c027fffb2 Mon Sep 17 00:00:00 2001 From: Anton Shestakov Date: Sat, 23 Jul 2016 18:22:05 +0800 Subject: util.sql: remove unused one-letter loop variables [luacheck] --- util/sql.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/sql.lua b/util/sql.lua index 6fed1373..eb562eb2 100644 --- a/util/sql.lua +++ b/util/sql.lua @@ -49,7 +49,7 @@ end 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 @@ function engine:_create_table(table) 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 -- cgit v1.2.3