Skip to content

Commit

Permalink
split up line into if/else
Browse files Browse the repository at this point in the history
  • Loading branch information
evansmith committed Mar 26, 2024
1 parent eb439d3 commit cc1e6b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,11 @@ 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) # rubocop:disable Layout/LineLength
@pdf_path = if @claim.form_id == '21P-530V2'
process_record(@claim, @claim.created_at, @claim.form_id)
else
process_record(@claim)
end

@attachment_paths = @claim.persistent_attachments.map do |record|
process_record(record)
Expand Down

0 comments on commit cc1e6b4

Please sign in to comment.