aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/elastic.lua10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua
index 205a5ce86..4303ce6cc 100644
--- a/src/plugins/lua/elastic.lua
+++ b/src/plugins/lua/elastic.lua
@@ -659,15 +659,7 @@ local function get_general_metadata(task)
end
local fuzzy_hashes = task:get_mempool():get_variable('fuzzy_hashes', 'fstrings')
- if fuzzy_hashes and #fuzzy_hashes > 0 then
- local l = {}
- for _, h in ipairs(fuzzy_hashes) do
- table.insert(l, h)
- end
- r.fuzzy_hashes = l
- else
- r.fuzzy_hashes = empty
- end
+r.fuzzy_hashes = fuzzy_hashes or empty
r.received_delay = 0
if user then -- calculate received_delay only for incoming traffic