]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Do not use built-in Lua function as variable name
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 18 Aug 2020 17:41:05 +0000 (18:41 +0100)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 18 Aug 2020 17:41:05 +0000 (18:41 +0100)
src/plugins/lua/clickhouse.lua

index 578a35365b5dcf2a53e97fe54f2c5b56c370e8c2..734832d57a40976a4d72e8b628bf302ec96cf789 100644 (file)
@@ -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