Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
evansmith committed Mar 26, 2024
1 parent d111115 commit 38afa50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/sidekiq/central_mail/submit_saved_claim_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def perform(saved_claim_id)

def send_claim_to_central_mail(saved_claim_id)
@claim = SavedClaim.find(saved_claim_id)
@pdf_path = @claim.form_id == '21P-530V2' ? process_record(@claim, @claim.created_at, @claim.form_id) : process_record(@claim)
@pdf_path = @claim.form_id == '21P-530V2' ? process_record(@claim, @claim.created_at, @claim.form_id) : process_record(@claim) # rubocop:disable Layout/LineLength

@attachment_paths = @claim.persistent_attachments.map do |record|
process_record(record)
Expand Down Expand Up @@ -97,6 +97,7 @@ def to_faraday_upload(file_path)
)
end

# rubocop:disable Metrics/MethodLength
def process_record(record, timestamp = nil, form_id = nil)
pdf_path = record.to_pdf
stamped_path1 = CentralMail::DatestampPdf.new(pdf_path).run(text: 'VA.GOV', x: 5, y: 5)
Expand All @@ -122,6 +123,7 @@ def process_record(record, timestamp = nil, form_id = nil)
stamped_path2
end
end
# rubocop:enable Metrics/MethodLength

def get_hash_and_pages(file_path)
{
Expand Down

0 comments on commit 38afa50

Please sign in to comment.