Skip to content

Commit

Permalink
fix: do not trim if maxEvents is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Oct 13, 2019
1 parent 5c0eb6f commit 7edd8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/addJob-8.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ else
end

local maxEvents = rcall("HGET", KEYS[3], "opts.maxLenEvents")
rcall("XTRIM", KEYS[7], "MAXLEN", "~", maxEvents)
if (maxEvents ~= nil) then rcall("XTRIM", KEYS[7], "MAXLEN", "~", maxEvents) end

return jobId .. "" -- convert to string

0 comments on commit 7edd8f4

Please sign in to comment.