Updated

app/jobs/archived / deliver_debate_outcome_email_job.rb

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