0
0
Fork 0

Apply Rubocop Performance/RedundantBlockCall (#23440)

This commit is contained in:
Nick Schonning 2023-02-07 18:58:18 -05:00 committed by GitHub
parent f31d9a590d
commit cec005068f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ class Trends::History
def each(&block)
if block_given?
(0...7).map { |i| block.call(get(i.days.ago)) }
(0...7).map { |i| yield(get(i.days.ago)) }
else
to_enum(:each)
end