mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
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(:property_name) { match('[a-z_]').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(:variable) { (str('}}').absent? >> path).repeat.as(:variable) }
|
||||
rule(:expression) { str('{{') >> variable >> str('}}') }
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class MoveWorker
|
|||
rescue ActiveRecord::RecordInvalid
|
||||
nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Finally, handle the common case of accounts not following the new account
|
||||
source_local_followers
|
||||
|
|
@ -72,7 +72,7 @@ class MoveWorker
|
|||
['relationships', @target_account.id, follow.account_id],
|
||||
]
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
num_moved
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user