Fix Performance/Sum cop (#24788)
This commit is contained in:
parent
41eb49b984
commit
5e060e1f44
4 changed files with 3 additions and 11 deletions
|
@ -43,7 +43,7 @@ class ActivityTracker
|
|||
|
||||
case @type
|
||||
when :basic
|
||||
redis.mget(*keys).map(&:to_i).sum
|
||||
redis.mget(*keys).sum(&:to_i)
|
||||
when :unique
|
||||
redis.pfcount(*keys)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue