diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-18 06:39:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 12:39:00 +0100 |
commit | ab7816a4141e88cf7e05ba49638ee95fcc6f71ff (patch) | |
tree | d58529059d83b43c77042ed61b67de40327dd124 /lib | |
parent | e2a3ebb271017d800a448ad3ef3e8324ac1fab3b (diff) |
Autofix Rubocop Style/Lambda (#23696)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cli.rb | 2 | ||||
-rw-r--r-- | lib/mastodon/domains_cli.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cli.rb b/lib/cli.rb index 35c00e736..157465c4b 100644 --- a/lib/cli.rb +++ b/lib/cli.rb @@ -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, diff --git a/lib/mastodon/domains_cli.rb b/lib/mastodon/domains_cli.rb index 81ee53c18..f24a54e7e 100644 --- a/lib/mastodon/domains_cli.rb +++ b/lib/mastodon/domains_cli.rb @@ -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) |