Update rubocop to version 1.72.2 and use plugins configuration style (#33946)
This commit is contained in:
@@ -260,7 +260,7 @@ class Request
|
||||
outer_e = nil
|
||||
port = args.first
|
||||
|
||||
addresses = [] # rubocop:disable Lint/UselessAssignment # TODO: https://github.com/rubocop/rubocop/issues/13395
|
||||
addresses = [] # rubocop:disable Lint/UselessAssignment -- TODO: https://github.com/rubocop/rubocop/issues/13395
|
||||
begin
|
||||
addresses = [IPAddr.new(host)]
|
||||
rescue IPAddr::InvalidAddressError
|
||||
|
||||
@@ -6,6 +6,8 @@ class BackupService < BaseService
|
||||
include Payloadable
|
||||
include ContextHelper
|
||||
|
||||
CHUNK_SIZE = 1.megabyte
|
||||
|
||||
attr_reader :account, :backup
|
||||
|
||||
def call(backup)
|
||||
@@ -181,8 +183,6 @@ class BackupService < BaseService
|
||||
).as_json
|
||||
end
|
||||
|
||||
CHUNK_SIZE = 1.megabyte
|
||||
|
||||
def download_to_zip(zipfile, attachment, filename)
|
||||
adapter = Paperclip.io_adapters.for(attachment)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user