From dfa8949702dfadfdfa58bf0b6356b8ef5c8a2676 Mon Sep 17 00:00:00 2001 From: Katherine Langford Date: Fri, 9 Jan 2026 10:33:21 +0000 Subject: [PATCH] CLDC-4148: Lint changes --- app/models/form/lettings/questions/reason.rb | 12 ++++++------ spec/models/form/lettings/questions/reason_spec.rb | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/models/form/lettings/questions/reason.rb b/app/models/form/lettings/questions/reason.rb index 4c9478b73..f99343c13 100644 --- a/app/models/form/lettings/questions/reason.rb +++ b/app/models/form/lettings/questions/reason.rb @@ -15,11 +15,11 @@ class Form::Lettings::Questions::Reason < ::Form::Question def answer_options if form.start_year_2026_or_later? - return QUESTIONS_FROM_YEAR[2026] + QUESTIONS_FROM_YEAR[2026] elsif form.start_year_2025_or_later? - return QUESTIONS_FROM_YEAR[2025] + QUESTIONS_FROM_YEAR[2025] else - return QUESTIONS_FROM_YEAR[2024] + QUESTIONS_FROM_YEAR[2024] end end @@ -42,8 +42,8 @@ class Form::Lettings::Questions::Reason < ::Form::Question "17" => { "value" => "To move nearer to work" }, "48" => { "value" => "Domestic abuse - previously joint tenancy with partner" }, "49" => { "value" => "Domestic abuse - other" }, - "56" => { "value" => "Non-domestic violence (e.g. gang violence)"}, - "57" => { "value" => "Cuckooing (property being used by others for illegal activity)"}, + "56" => { "value" => "Non-domestic violence (e.g. gang violence)" }, + "57" => { "value" => "Cuckooing (property being used by others for illegal activity)" }, "10" => { "value" => "Racial harassment" }, "31" => { "value" => "Hate crime" }, "11" => { "value" => "Other problems with neighbours" }, @@ -129,7 +129,7 @@ class Form::Lettings::Questions::Reason < ::Form::Question "47" => { "value" => "Tenant prefers not to say" }, "divider" => { "value" => true }, "28" => { "value" => "Don’t know" }, - }.freeze + }.freeze, }.freeze QUESTION_NUMBER_FROM_YEAR = { 2023 => 77, 2024 => 76 }.freeze diff --git a/spec/models/form/lettings/questions/reason_spec.rb b/spec/models/form/lettings/questions/reason_spec.rb index 5c1fdde67..9bcaa9ea1 100644 --- a/spec/models/form/lettings/questions/reason_spec.rb +++ b/spec/models/form/lettings/questions/reason_spec.rb @@ -152,8 +152,8 @@ RSpec.describe Form::Lettings::Questions::Reason, type: :model do "17" => { "value" => "To move nearer to work" }, "48" => { "value" => "Domestic abuse - previously joint tenancy with partner" }, "49" => { "value" => "Domestic abuse - other" }, - "56" => { "value" => "Non-domestic violence (e.g. gang violence)"}, - "57" => { "value" => "Cuckooing (property being used by others for illegal activity)"}, + "56" => { "value" => "Non-domestic violence (e.g. gang violence)" }, + "57" => { "value" => "Cuckooing (property being used by others for illegal activity)" }, "10" => { "value" => "Racial harassment" }, "31" => { "value" => "Hate crime" }, "11" => { "value" => "Other problems with neighbours" },