mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +02:00
refactoring
This commit is contained in:
parent
48b793d310
commit
6da79df982
1 changed files with 3 additions and 3 deletions
|
@ -25,6 +25,8 @@ class RegistrantUser < User
|
|||
|
||||
companies = update_contacts_before_receive(companies)
|
||||
companies
|
||||
rescue CompanyRegister::NotAvailableError
|
||||
return []
|
||||
end
|
||||
|
||||
def update_contacts_before_receive(companies)
|
||||
|
@ -42,9 +44,7 @@ class RegistrantUser < User
|
|||
end
|
||||
end
|
||||
|
||||
return companies
|
||||
rescue CompanyRegister::NotAvailableError
|
||||
nil
|
||||
companies
|
||||
end
|
||||
|
||||
def update_company_name(contact:, company:)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue