Skip to content

Commit

Permalink
Fix code style issues using Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Sep 13, 2023
1 parent 761282f commit a76ffd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions app/forms/support_interface/country_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ def diff_actions
end
end



def eligibility_route
if subject_limited
"expanded"
Expand All @@ -91,7 +89,7 @@ def eligibility_route
def eligibility_route=(value)
subject_limited_will_change!
eligibility_skip_questions_will_change!

case value
when "standard"
self.subject_limited = false
Expand All @@ -103,5 +101,5 @@ def eligibility_route=(value)
self.subject_limited = true
self.eligibility_skip_questions = false
end
end
end
end
4 changes: 2 additions & 2 deletions spec/factories/countries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
sequence :code, Country::CODES.cycle

trait :requires_secondary_education_teaching_qualification do
subject_limited {true}
subject_limited { true }
end

trait :doesnt_require_secondary_education_teaching_qualification do
subject_limited {false}
subject_limited { false }
end

trait :with_national_region do
Expand Down

0 comments on commit a76ffd4

Please sign in to comment.