about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/models/trends/history.rb2
-rw-r--r--app/workers/import/relationship_worker.rb2
2 files changed, 2 insertions, 2 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
diff --git a/app/workers/import/relationship_worker.rb b/app/workers/import/relationship_worker.rb
index 6791b15c3..c2728c196 100644
--- a/app/workers/import/relationship_worker.rb
+++ b/app/workers/import/relationship_worker.rb
@@ -49,7 +49,7 @@ class Import::RelationshipWorker
         .with_error_handler { |error, handle| error.is_a?(HTTP::Error) || error.is_a?(OpenSSL::SSL::SSLError) ? handle.call(error) : raise(error) }
         .run
     else
-      block.call
+      yield
     end
   end
 end