Updated

app/jobs/archived / deliver_threshold_response_email_job.rb

B
13 lines of codes
1 methods
15.2 complexity/method
1 churn
15.23 complexity
19 duplications
module Archived class DeliverThresholdResponseEmailJob < ApplicationJob
  1. Similar code found in 3 nodes Locations: 0 1 2
  2. Archived::DeliverThresholdResponseEmailJob has no descriptive comment
include EmailDelivery def create_email if signature.creator? mailer.notify_creator_of_threshold_response signature.petition, signature
  1. Archived::DeliverThresholdResponseEmailJob#create_email calls 'signature.petition' 2 times Locations: 0 1
else mailer.notify_signer_of_threshold_response signature.petition, signature
  1. Archived::DeliverThresholdResponseEmailJob#create_email calls 'signature.petition' 2 times Locations: 0 1
end end end end