From 37fe1b4845e6c19467f82d2b9538472cbaf82272 Mon Sep 17 00:00:00 2001 From: MadeTech Dushan Date: Wed, 20 Oct 2021 16:08:46 +0100 Subject: [PATCH] lint fixes --- app/models/case_log.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/case_log.rb b/app/models/case_log.rb index ae16a4945..a524a9e42 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -105,8 +105,8 @@ private dynamically_not_required << "other_reason_for_leaving_last_settled_home" end - if net_income.to_i == 0 - dynamically_not_required << "net_income_frequency" + if net_income.to_i.zero? + dynamically_not_required << "net_income_frequency" end required.delete_if { |key, _value| dynamically_not_required.include?(key) }