Browse Source

lint fixes

pull/55/head
MadeTech Dushan 3 years ago
parent
commit
37fe1b4845
  1. 4
      app/models/case_log.rb

4
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) }

Loading…
Cancel
Save