Skip to content

Commit

Permalink
fix new linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Dec 3, 2024
1 parent 3430288 commit 1d507cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/csv_importer/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def delete_all_scope
end

def with_headers?
parse_headers && mandatory_headers&.is_a?(Array) && mandatory_headers&.any?
parse_headers && mandatory_headers&.is_a?(Array) && mandatory_headers.any?
end

def check_headers
Expand Down
16 changes: 8 additions & 8 deletions spec/models/payment_confirmation_upload_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
gross_value: "487.48".to_d,
national_insurance: "33.9".to_d,
employers_national_insurance: "38.98".to_d,
student_loan_repayment: "0".to_d,
postgraduate_loan_repayment: "0".to_d,
student_loan_repayment: 0.to_d,
postgraduate_loan_repayment: 0.to_d,
tax: "89.6".to_d,
net_pay: "325".to_d,
net_pay: 325.to_d,
gross_pay: "448.5".to_d
)

Expand All @@ -102,10 +102,10 @@
gross_value: "904.15".to_d,
national_insurance: "77.84".to_d,
employers_national_insurance: "89.51".to_d,
student_loan_repayment: "40".to_d,
postgraduate_loan_repayment: "0".to_d,
student_loan_repayment: 40.to_d,
postgraduate_loan_repayment: 0.to_d,
tax: "162.8".to_d,
net_pay: "534".to_d,
net_pay: 534.to_d,
gross_pay: "814.64".to_d
)

Expand All @@ -114,9 +114,9 @@
gross_value: "11_027.46".to_d,
national_insurance: "268.84".to_d,
employers_national_insurance: "1316.63".to_d,
student_loan_repayment: "839".to_d,
student_loan_repayment: 839.to_d,
postgraduate_loan_repayment: "9710.83".to_d,
tax: "1942".to_d,
tax: 1942.to_d,
net_pay: "6660.99".to_d,
gross_pay: "9710.83".to_d
)
Expand Down

0 comments on commit 1d507cd

Please sign in to comment.