mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-16 12:12:14 +00:00
Fix Lint/Void
cop (#25922)
This commit is contained in:
parent
a5842df123
commit
1cceb62afd
|
@ -127,12 +127,6 @@ Lint/UselessAssignment:
|
||||||
- 'spec/services/resolve_url_service_spec.rb'
|
- 'spec/services/resolve_url_service_spec.rb'
|
||||||
- 'spec/views/statuses/show.html.haml_spec.rb'
|
- 'spec/views/statuses/show.html.haml_spec.rb'
|
||||||
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
|
||||||
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
||||||
Lint/Void:
|
|
||||||
Exclude:
|
|
||||||
- 'spec/services/resolve_account_service_spec.rb'
|
|
||||||
|
|
||||||
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
Max: 150
|
Max: 150
|
||||||
|
|
|
@ -209,11 +209,6 @@ RSpec.describe ResolveAccountService, type: :service do
|
||||||
fail_occurred = false
|
fail_occurred = false
|
||||||
return_values = Concurrent::Array.new
|
return_values = Concurrent::Array.new
|
||||||
|
|
||||||
# Preload classes that throw circular dependency errors in threads
|
|
||||||
Account
|
|
||||||
TagManager
|
|
||||||
DomainBlock
|
|
||||||
|
|
||||||
threads = Array.new(5) do
|
threads = Array.new(5) do
|
||||||
Thread.new do
|
Thread.new do
|
||||||
true while wait_for_start
|
true while wait_for_start
|
||||||
|
|
Loading…
Reference in a new issue