Software /
code /
prosody
Diff
util/sql.lua @ 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 |
parent | 7431:0d991d5659f0 |
child | 8073:7361412a9664 |
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