diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-11-16 10:17:42 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-11-16 10:17:42 +0200 |
commit | 03e3d7063308dd169d5b1692ccd28403c16ddd76 (patch) | |
tree | 7eca2b3fbfd8538fd13401fabb242e9570a0924b /src/plugins/lua/trie.lua | |
parent | a5eef8b08ca4ea69cc3c5bb718102fe24f20a61b (diff) | |
download | rspamd-03e3d7063308dd169d5b1692ccd28403c16ddd76.tar.gz rspamd-03e3d7063308dd169d5b1692ccd28403c16ddd76.zip |
[Minor] Small polishes for Lua parts
Diffstat (limited to 'src/plugins/lua/trie.lua')
-rw-r--r-- | src/plugins/lua/trie.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/trie.lua b/src/plugins/lua/trie.lua index 443f2e5de..1be5b1d98 100644 --- a/src/plugins/lua/trie.lua +++ b/src/plugins/lua/trie.lua @@ -18,7 +18,7 @@ limitations under the License. local rspamd_logger = require "rspamd_logger" local rspamd_trie = require "rspamd_trie" -local _ = require "fun" +local fun = require "fun" local mime_trie local raw_trie @@ -122,7 +122,7 @@ local function process_trie_conf(symbol, cf) if cf['file'] then process_trie_file(symbol, cf) elseif cf['patterns'] then - _.each(function(pat) + fun.each(function(pat) process_single_pattern(pat, symbol, cf) end, cf['patterns']) end |