Fix violations to existing cops from rubocop v1.85.0 (#38015)
This commit is contained in:
parent
7f16397f3c
commit
d845a8a289
@ -39,7 +39,7 @@ class Webhooks::PayloadRenderer
|
|||||||
rule(:digit) { match('[0-9]') }
|
rule(:digit) { match('[0-9]') }
|
||||||
rule(:property_name) { match('[a-z_]').repeat(1) }
|
rule(:property_name) { match('[a-z_]').repeat(1) }
|
||||||
rule(:array_index) { digit.repeat(1) }
|
rule(:array_index) { digit.repeat(1) }
|
||||||
rule(:segment) { (property_name | array_index) }
|
rule(:segment) { property_name | array_index }
|
||||||
rule(:path) { property_name >> (dot >> segment).repeat }
|
rule(:path) { property_name >> (dot >> segment).repeat }
|
||||||
rule(:variable) { (str('}}').absent? >> path).repeat.as(:variable) }
|
rule(:variable) { (str('}}').absent? >> path).repeat.as(:variable) }
|
||||||
rule(:expression) { str('{{') >> variable >> str('}}') }
|
rule(:expression) { str('{{') >> variable >> str('}}') }
|
||||||
|
|||||||
@ -53,7 +53,7 @@ class MoveWorker
|
|||||||
rescue ActiveRecord::RecordInvalid
|
rescue ActiveRecord::RecordInvalid
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Finally, handle the common case of accounts not following the new account
|
# Finally, handle the common case of accounts not following the new account
|
||||||
source_local_followers
|
source_local_followers
|
||||||
@ -72,7 +72,7 @@ class MoveWorker
|
|||||||
['relationships', @target_account.id, follow.account_id],
|
['relationships', @target_account.id, follow.account_id],
|
||||||
]
|
]
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
num_moved
|
num_moved
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user