0
0
Fork 0

Clarify keyword arguments with ** (#12769)

This change is to suppress the warning below on on ruby-2.7.0:

- warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/
This commit is contained in:
Daigo 3 Dango 2020-01-10 10:57:05 -10:00 committed by Yamagishi Kazutoshi
parent 7583679ecf
commit 206dfd7dad
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ class ActivityPub::ProcessCollectionService < BaseService
end
def process_item(item)
activity = ActivityPub::Activity.factory(item, @account, @options)
activity = ActivityPub::Activity.factory(item, @account, **@options)
activity&.perform
end