From f7f9840bcea60d402ed323c739590a6f986c4fb4 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Fri, 14 Apr 2023 17:24:39 +0100 Subject: [PATCH] refactor: lint --- app/models/form/sales/pages/housing_benefits.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/models/form/sales/pages/housing_benefits.rb b/app/models/form/sales/pages/housing_benefits.rb index f365422c9..34bc338f9 100644 --- a/app/models/form/sales/pages/housing_benefits.rb +++ b/app/models/form/sales/pages/housing_benefits.rb @@ -2,11 +2,14 @@ class Form::Sales::Pages::HousingBenefits < ::Form::Page def initialize(id, hsh, subsection, joint_purchase:) super(id, hsh, subsection) @joint_purchase = joint_purchase - @depends_on = [if @joint_purchase - { "joint_purchase?" => true } - else - { "not_joint_purchase?" => true } - end] + @depends_on = + [ + if @joint_purchase + { "joint_purchase?" => true } + else + { "not_joint_purchase?" => true } + end, + ] end def questions