commit 5098f10: [Minor] Do not use built-in Lua function as variable name
Anton Yuzhaninov
citrin+git at citrin.ru
Tue Aug 18 19:00:06 UTC 2020
Author: Anton Yuzhaninov
Date: 2020-08-18 18:41:05 +0100
URL: https://github.com/rspamd/rspamd/commit/5098f10c3d713e925bc27053baf1e66e71baea50
[Minor] Do not use built-in Lua function as variable name
---
src/plugins/lua/clickhouse.lua | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index 578a35365..734832d57 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -731,9 +731,8 @@ local function clickhouse_collect(task)
if fname then
table.insert(attachments_fnames, fname)
- local type, subtype = part:get_type()
- table.insert(attachments_ctypes, string.format("%s/%s",
- type, subtype))
+ local mime_type, mime_subtype = part:get_type()
+ table.insert(attachments_ctypes, string.format("%s/%s", mime_type, mime_subtype))
table.insert(attachments_lengths, part:get_length())
table.insert(attachments_digests, string.sub(part:get_digest(), 1, 16))
end
More information about the Commits
mailing list