From: Anton Yuzhaninov Date: Tue, 18 Aug 2020 17:41:05 +0000 (+0100) Subject: [Minor] Do not use built-in Lua function as variable name X-Git-Tag: 2.6~146^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5098f10c3d713e925bc27053baf1e66e71baea50;p=thirdparty%2Frspamd.git [Minor] Do not use built-in Lua function as variable name --- diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 578a35365b..734832d57a 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