Fix violations to existing cops from rubocop v1.85.0 (#38015)

This commit is contained in:
Matt Jankowski 2026-03-02 03:47:45 -05:00 committed by GitHub
parent 7f16397f3c
commit d845a8a289
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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('}}') }

View File

@ -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