Skip to content

Commit

Permalink
Remove this conditional branch
Browse files Browse the repository at this point in the history
This branch can't get hit as this method is only called when the
claimant is a trainee teacher, ie `nqt_in_academic_year_after_itt` is
`false`.
  • Loading branch information
rjlynch committed Nov 20, 2024
1 parent 73eb02f commit 96ae744
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/models/journeys/page_sequence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ def lup_trainee_at_lup_school
def handle_trainee_teacher
case current_slug
when "nqt-in-academic-year-after-itt"
if answers.nqt_in_academic_year_after_itt?
"supply-teacher"
else
@journey_session.answers.policy_year.in?(EligibilityCheckable::COMBINED_ECP_AND_LUP_POLICY_YEARS_BEFORE_FINAL_YEAR) ? "eligible-itt-subject" : "ineligible"
end
@journey_session.answers.policy_year.in?(EligibilityCheckable::COMBINED_ECP_AND_LUP_POLICY_YEARS_BEFORE_FINAL_YEAR) ? "eligible-itt-subject" : "ineligible"
when "eligible-itt-subject"
if answers.eligible_itt_subject.to_sym.in? Policies::LevellingUpPremiumPayments.fixed_subject_symbols
"future-eligibility"
Expand Down

0 comments on commit 96ae744

Please sign in to comment.