From 5098f10c3d713e925bc27053baf1e66e71baea50 Mon Sep 17 00:00:00 2001 From: Anton Yuzhaninov Date: Tue, 18 Aug 2020 18:41:05 +0100 Subject: [PATCH] [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 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 -- 2.47.3