Skip to content

Commit

Permalink
[Minor] Maillist: Fix checks logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed May 7, 2022
1 parent 93bba96 commit 691ec14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/lua/maillist.lua
Expand Up @@ -221,7 +221,7 @@ local function check_generic_list_headers(task)
lua_util.debugm(N, task, 'has %s header, score = %s', hname, score)
else
local score_change = hscore()
if score then
if score and score_change then
score = score + score_change
lua_util.debugm(N, task, 'has %s header, score = %s', hname, score)
end
Expand Down

0 comments on commit 691ec14

Please sign in to comment.