about summary refs log tree commit diff
path: root/lib/mastodon
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-20 01:58:33 -0500
committerGitHub <noreply@github.com>2023-02-20 07:58:33 +0100
commitaf4c95100c519ea63c9d8a3e9a3f900091933ce2 (patch)
treea3345d5a909a2d55932df66dd73ddf32a6525900 /lib/mastodon
parenta9472f8ff15523c13ab7e32592f11a6c51cc14e3 (diff)
Autofix Rubocop Style/FormatString (#23743)
Diffstat (limited to 'lib/mastodon')
-rw-r--r--lib/mastodon/maintenance_cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/maintenance_cli.rb b/lib/mastodon/maintenance_cli.rb
index 3e644045f..ff8f6ddda 100644
--- a/lib/mastodon/maintenance_cli.rb
+++ b/lib/mastodon/maintenance_cli.rb
@@ -550,7 +550,7 @@ module Mastodon
       @prompt.warn 'All those accounts are distinct accounts but only the most recently-created one is fully-functional.'
 
       accounts.each_with_index do |account, idx|
-        @prompt.say '%2d. %s: created at: %s; updated at: %s; last logged in at: %s; statuses: %5d; last status at: %s' % [idx, account.username, account.created_at, account.updated_at, account.user&.last_sign_in_at&.to_s || 'N/A', account.account_stat&.statuses_count || 0, account.account_stat&.last_status_at || 'N/A']
+        @prompt.say format('%2d. %s: created at: %s; updated at: %s; last logged in at: %s; statuses: %5d; last status at: %s', idx, account.username, account.created_at, account.updated_at, account.user&.last_sign_in_at&.to_s || 'N/A', account.account_stat&.statuses_count || 0, account.account_stat&.last_status_at || 'N/A')
       end
 
       @prompt.say 'Please chose the one to keep unchanged, other ones will be automatically renamed.'