about summary refs log tree commit diff
path: root/app/models/trends
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-07 18:58:18 -0500
committerGitHub <noreply@github.com>2023-02-08 00:58:18 +0100
commitcec005068f25c6487331a8437e69f29d5bef3d60 (patch)
tree6eac3f1cb4a0f27868890e7ed9bfa6c814d855dd /app/models/trends
parentf31d9a590d0b07e60d92f5dd404ab628a4a2ff70 (diff)
Apply Rubocop Performance/RedundantBlockCall (#23440)
Diffstat (limited to 'app/models/trends')
-rw-r--r--app/models/trends/history.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/trends/history.rb b/app/models/trends/history.rb
index 74723e35c..03d62103f 100644
--- a/app/models/trends/history.rb
+++ b/app/models/trends/history.rb
@@ -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