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/mastodon | |
parent | e2a3ebb271017d800a448ad3ef3e8324ac1fab3b (diff) |
Autofix Rubocop Style/Lambda (#23696)
Diffstat (limited to 'lib/mastodon')
-rw-r--r-- | lib/mastodon/domains_cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |