From a76ffd4834c8db2497613dc6747368b42446eefb Mon Sep 17 00:00:00 2001 From: Shujat Khalid Date: Wed, 13 Sep 2023 16:06:58 +0100 Subject: [PATCH] Fix code style issues using Prettier --- app/forms/support_interface/country_form.rb | 6 ++---- spec/factories/countries.rb | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/forms/support_interface/country_form.rb b/app/forms/support_interface/country_form.rb index 9b00a09372..e50db0268e 100644 --- a/app/forms/support_interface/country_form.rb +++ b/app/forms/support_interface/country_form.rb @@ -76,8 +76,6 @@ def diff_actions end end - - def eligibility_route if subject_limited "expanded" @@ -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 @@ -103,5 +101,5 @@ def eligibility_route=(value) self.subject_limited = true self.eligibility_skip_questions = false end - end + end end diff --git a/spec/factories/countries.rb b/spec/factories/countries.rb index 1ec55d88cc..50b9e96b42 100644 --- a/spec/factories/countries.rb +++ b/spec/factories/countries.rb @@ -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