From 298856d9d5f752be49066fd04e7de697a611b22a Mon Sep 17 00:00:00 2001 From: Lovro Colic Date: Tue, 24 Dec 2024 14:52:26 +0100 Subject: [PATCH] fix linter --- app/services/invoices/refresh_draft_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/invoices/refresh_draft_service.rb b/app/services/invoices/refresh_draft_service.rb index 1fb900423cb..73f5cb564ea 100644 --- a/app/services/invoices/refresh_draft_service.rb +++ b/app/services/invoices/refresh_draft_service.rb @@ -109,7 +109,7 @@ def flag_lifetime_usage_for_refresh end def tax_error?(error) - error && error.is_a?(BaseService::UnknownTaxFailure) + error&.is_a?(BaseService::UnknownTaxFailure) end def reset_invoice_values