aboutsummaryrefslogtreecommitdiffstats
path: root/util/sql.lua
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2016-07-23 18:22:05 +0800
committerAnton Shestakov <av6@dwimlabs.net>2016-07-23 18:22:05 +0800
commit5742b659ac301d5614f6a48c8dab68a2c5e68a6f (patch)
tree885e138a7db02c7335c43f5a0e464c9e6b387006 /util/sql.lua
parente86cf5f8cb5ee8aac76e57c3e9bc18691944a5be (diff)
downloadprosody-5742b659ac301d5614f6a48c8dab68a2c5e68a6f.tar.gz
prosody-5742b659ac301d5614f6a48c8dab68a2c5e68a6f.zip
util.sql: remove unused one-letter loop variables [luacheck]
Diffstat (limited to 'util/sql.lua')
-rw-r--r--util/sql.lua4
1 files changed, 2 insertions, 2 deletions
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