Skip to content

Commit

Permalink
[Minor] Fix count check
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jul 17, 2019
1 parent a570df7 commit 0aae797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/lua/reputation.lua
Expand Up @@ -839,7 +839,7 @@ local function reputation_redis_init(rule, cfg, ev_base, worker)
{% endfor %}
end
return {cnt,results}
return {cnt or 0, results}
]]

local get_script = lua_util.jinja_template(redis_get_script_tpl,
Expand Down

0 comments on commit 0aae797

Please sign in to comment.