0
0
Fork 0

Fix Lint/RedundantSafeNavigation cop (#28172)

This commit is contained in:
Matt Jankowski 2023-12-01 10:52:56 -05:00 committed by GitHub
parent a98fccf84e
commit d83d01eb1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ class Trends::History
end
def uses
with_redis { |redis| redis.get(key_for(:uses))&.to_i || 0 }
with_redis { |redis| redis.get(key_for(:uses)).to_i }
end
def add(account_id)