From 665bc7ecfd67052045454ed280deabddc6f0f27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Meny?= Date: Mon, 13 Jun 2022 14:54:47 +0100 Subject: [PATCH] CLDC-1304: Rubocop --- app/models/derived_varables/case_log_variables.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/derived_varables/case_log_variables.rb b/app/models/derived_varables/case_log_variables.rb index eddff5620..0684b971f 100644 --- a/app/models/derived_varables/case_log_variables.rb +++ b/app/models/derived_varables/case_log_variables.rb @@ -141,11 +141,11 @@ private return unless startdate referral_within_sector = [1, 10] - if collection_start_year <= 2021 - previous_social_tenancies = [6, 8, 30, 31, 32, 33] - else - previous_social_tenancies = [6, 30, 31, 32, 33, 34, 35] - end + previous_social_tenancies = if collection_start_year <= 2021 + [6, 8, 30, 31, 32, 33] + else + [6, 30, 31, 32, 33, 34, 35] + end if previous_social_tenancies.include?(prevten) || referral_within_sector.include?(referral) 2 # Tenant existing in social housing sector