mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Refactor
This commit is contained in:
parent
cad457fb72
commit
ee864c807f
4 changed files with 20 additions and 7 deletions
|
@ -810,11 +810,7 @@ class Epp::Domain < Domain
|
|||
next
|
||||
end
|
||||
|
||||
if Domain.find_by_idn domain_name_as_string
|
||||
result << { name: domain_name_as_string, avail: 0, reason: 'in use' }
|
||||
else
|
||||
result << { name: domain_name_as_string, avail: 1 }
|
||||
end
|
||||
result << { name: domain_name_as_string, avail: 1 }
|
||||
end
|
||||
|
||||
result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue