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