Fix Performance/Sum cop (#24788)

This commit is contained in:
Matt Jankowski
2023-05-02 10:10:40 -04:00
committed by GitHub
parent 41eb49b984
commit 5e060e1f44
4 changed files with 3 additions and 11 deletions

View File

@@ -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