Skip to content

Commit

Permalink
Apply Rubocop Performance/StringIdentifierArgument (mastodon#23444)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Feb 8, 2023
1 parent 2e652aa commit 203739d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/lib/scope_transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def merge(other_scope)
def merge!(other_scope)
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.sort!

Expand Down
4 changes: 2 additions & 2 deletions lib/mastodon/statuses_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def remove_statuses
c.table_name = 'statuses_to_be_deleted'
end

Object.const_set('StatusToBeDeleted', klass)
Object.const_set(:StatusToBeDeleted, klass)

scope = StatusToBeDeleted
processed = 0
Expand Down Expand Up @@ -175,7 +175,7 @@ def remove_orphans_conversations
c.table_name = 'conversations_to_be_deleted'
end

Object.const_set('ConversationsToBeDeleted', klass)
Object.const_set(:ConversationsToBeDeleted, klass)

scope = ConversationsToBeDeleted
processed = 0
Expand Down

0 comments on commit 203739d

Please sign in to comment.