Fix Lint/RedundantSafeNavigation cop (#28172)
This commit is contained in:
1 parent
a98fccf84e
commit
d83d01eb1e
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user