Skip to content

Commit

Permalink
Remove redundant statement
Browse files Browse the repository at this point in the history
The default behaviour for backlink_path is to use the previous slug in the sequence, so there is no
need to run this conditional check.
  • Loading branch information
your committed May 7, 2024
1 parent 8832c18 commit 5a823a5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/controllers/claims_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ def show

if params[:slug] == "select-claim-school"
update_session_with_tps_school(current_claim.tps_school_for_student_loan_in_previous_financial_year)
elsif params[:slug] == "subjects-taught" && page_sequence.in_sequence?("select-claim-school")
@backlink_path = claim_path(current_journey_routing_name, "select-claim-school")
elsif params[:slug] == "postcode-search" && postcode
redirect_to claim_path(current_journey_routing_name, "select-home-address", {"claim[postcode]": params[:claim][:postcode], "claim[address_line_1]": params[:claim][:address_line_1]}) and return unless invalid_postcode?
elsif params[:slug] == "select-home-address" && postcode
Expand Down

0 comments on commit 5a823a5

Please sign in to comment.