mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-18 07:38:42 +00:00
Apply Rubocop Performance/StringIdentifierArgument (#23444)
This commit is contained in:
parent
2e652aa81c
commit
203739dd3a
|
@ -28,7 +28,7 @@ class ScopeTransformer < Parslet::Transform
|
||||||
def merge!(other_scope)
|
def merge!(other_scope)
|
||||||
raise ArgumentError unless other_scope.namespace == namespace && other_scope.term == term
|
raise ArgumentError unless other_scope.namespace == namespace && other_scope.term == term
|
||||||
|
|
||||||
@access.concat(other_scope.instance_variable_get('@access'))
|
@access.concat(other_scope.instance_variable_get(:@access))
|
||||||
@access.uniq!
|
@access.uniq!
|
||||||
@access.sort!
|
@access.sort!
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ module Mastodon
|
||||||
c.table_name = 'statuses_to_be_deleted'
|
c.table_name = 'statuses_to_be_deleted'
|
||||||
end
|
end
|
||||||
|
|
||||||
Object.const_set('StatusToBeDeleted', klass)
|
Object.const_set(:StatusToBeDeleted, klass)
|
||||||
|
|
||||||
scope = StatusToBeDeleted
|
scope = StatusToBeDeleted
|
||||||
processed = 0
|
processed = 0
|
||||||
|
@ -175,7 +175,7 @@ module Mastodon
|
||||||
c.table_name = 'conversations_to_be_deleted'
|
c.table_name = 'conversations_to_be_deleted'
|
||||||
end
|
end
|
||||||
|
|
||||||
Object.const_set('ConversationsToBeDeleted', klass)
|
Object.const_set(:ConversationsToBeDeleted, klass)
|
||||||
|
|
||||||
scope = ConversationsToBeDeleted
|
scope = ConversationsToBeDeleted
|
||||||
processed = 0
|
processed = 0
|
||||||
|
|
Loading…
Reference in a new issue