From 023ce4fd6d6a2a6645b6dc37cb038d528d7c3a4d Mon Sep 17 00:00:00 2001 From: micahaspyr Date: Thu, 5 Sep 2024 01:50:06 -0600 Subject: [PATCH] Refactor check_net_worth method --- lib/pdf_fill/forms/va686c674.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/pdf_fill/forms/va686c674.rb b/lib/pdf_fill/forms/va686c674.rb index 426d345ef07..2609c35dcd4 100644 --- a/lib/pdf_fill/forms/va686c674.rb +++ b/lib/pdf_fill/forms/va686c674.rb @@ -1952,12 +1952,8 @@ def add_household_income end def check_net_worth(net_worth) - return nil if net_worth.empty? - if net_worth&.to_i > 130_773 - true - else - false - end + return if net_worth.empty? + net_worth&.to_i > 130_773 end def add_dependent_income(dependent_name, dependent_income)