Update rubocop to version 1.76.0 (#34926)
This commit is contained in:
		@@ -23,7 +23,7 @@ module Mastodon
 | 
			
		||||
 | 
			
		||||
    def announce_countdown
 | 
			
		||||
      WARNING_SECONDS.downto(1) do |i|
 | 
			
		||||
        say "Continuing in #{i} second#{i == 1 ? '' : 's'}...", true
 | 
			
		||||
        say "Continuing in #{i} second#{'s' unless i == 1}...", true
 | 
			
		||||
        sleep 1
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
 
 | 
			
		||||
@@ -75,7 +75,7 @@ module Mastodon
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    def user_agent
 | 
			
		||||
      @user_agent ||= "Mastodon/#{Version} (#{HTTP::Request::USER_AGENT}; +http#{Rails.configuration.x.use_https ? 's' : ''}://#{Rails.configuration.x.web_domain}/)"
 | 
			
		||||
      @user_agent ||= "Mastodon/#{Version} (#{HTTP::Request::USER_AGENT}; +http#{'s' if Rails.configuration.x.use_https}://#{Rails.configuration.x.web_domain}/)"
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    def version_configuration
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user