about summary refs log tree commit diff
path: root/app/models/trends
diff options
context:
space:
mode:
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 03d62103f..83532e7bc 100644
--- a/app/models/trends/history.rb
+++ b/app/models/trends/history.rb
@@ -87,7 +87,7 @@ class Trends::History
   end
 
   def each(&block)
-    if block_given?
+    if block
       (0...7).map { |i| yield(get(i.days.ago)) }
     else
       to_enum(:each)