0
0
Fork 0

Autofix Rubocop Style/Lambda (#23696)

This commit is contained in:
Nick Schonning 2023-02-18 06:39:00 -05:00 committed by GitHub
parent e2a3ebb271
commit ab7816a414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 19 deletions

View file

@ -121,7 +121,7 @@ module Mastodon
prompt.warn('Do NOT interrupt this process...')
delete_account = ->(account) do
delete_account = lambda do |account|
payload = ActiveModelSerializers::SerializableResource.new(
account,
serializer: ActivityPub::DeleteActorSerializer,

View file

@ -139,7 +139,7 @@ module Mastodon
pool = Concurrent::ThreadPoolExecutor.new(min_threads: 0, max_threads: options[:concurrency], idletime: 10, auto_terminate: true, max_queue: 0)
work_unit = ->(domain) do
work_unit = lambda do |domain|
next if stats.key?(domain)
next if options[:exclude_suspended] && domain.match?(blocked_domains)