fix(rubocop): Layout/ExtraSpacing et Layout/SpaceAroundOperators

This commit is contained in:
Colin Darie 2024-02-05 12:24:03 +01:00
parent e0d5dc84d5
commit e3f233cd51
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
4 changed files with 5 additions and 5 deletions

View file

@ -2,8 +2,8 @@ module Manager
class OutdatedProceduresController < Manager::ApplicationController
def index
@records_per_page = params[:records_per_page] || "10"
resources = Procedure.
where(procedure_expires_when_termine_enabled: false)
resources = Procedure
.where(procedure_expires_when_termine_enabled: false)
.order(created_at: :asc)
.page(params[:_page])
.per(@records_per_page)

View file

@ -45,7 +45,7 @@ class APIBretagneService
end
in Success(body:)
body
else # no response gives back a 204, so we don't try to JSON.parse(nil) to avoid error
else # no response gives back a 204, so we don't try to JSON.parse(nil) to avoid error
{ items: [] }
end
end

View file

@ -44,7 +44,7 @@ class ArchiveUploader
end
def upload_with_chunking_wrapper
params = blob_default_params(filepath).merge(byte_size: File.size(filepath),
params = blob_default_params(filepath).merge(byte_size: File.size(filepath),
checksum: Digest::SHA256.file(filepath).hexdigest)
blob = ActiveStorage::Blob.create_before_direct_upload!(**params)
if retryable_syscall_to_custom_uploader(blob)

View file

@ -148,7 +148,7 @@ def render_single_champ(pdf, champ)
add_libelle(pdf, champ)
pdf.text champ.description
pdf.text "\n"
when 'Champs::AddressChamp', 'Champs::CarteChamp', 'Champs::TextareaChamp'
when 'Champs::AddressChamp', 'Champs::CarteChamp', 'Champs::TextareaChamp'
format_in_2_lines(pdf, champ, 5)
when 'Champs::DropDownListChamp'
add_libelle(pdf, champ)