aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-30 17:58:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-30 17:58:00 +0100
commit3681d040bd87ddbdceccc802ec1d031a7c241d9a (patch)
treed461f99a61650cbc0426c99341d0ec950dca3eec /lualib
parent6b7c9efcb81b67b5293428813badd2c57416a75f (diff)
downloadrspamd-3681d040bd87ddbdceccc802ec1d031a7c241d9a.tar.gz
rspamd-3681d040bd87ddbdceccc802ec1d031a7c241d9a.zip
[Minor] Pet luacheck
Diffstat (limited to 'lualib')
-rw-r--r--lualib/rspamadm/statistics_dump.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/rspamadm/statistics_dump.lua b/lualib/rspamadm/statistics_dump.lua
index ab4e026c5..7b1dc581e 100644
--- a/lualib/rspamadm/statistics_dump.lua
+++ b/lualib/rspamadm/statistics_dump.lua
@@ -167,7 +167,7 @@ local function redis_map_zip(ar)
end
-- Used to clear plain numeric tables
-table.clear = table.clear or function(tbl)
+local clear_fcn = table.clear or function(tbl)
local l = #tbl
for i=1,l do tbl[i] = nil end
end
@@ -248,7 +248,7 @@ local function dump_pattern(conn, pattern, opts, out)
-- Do not write the last chunk of out as it will be processed afterwards
if not cursor == 0 then
dump_out(out, opts, false)
- table.clear(out)
+ clear_fcn(out)
end
until cursor == 0