mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
fixed codeclimate errors (partically)
This commit is contained in:
parent
3f41ce4ab4
commit
f4e0084895
103 changed files with 339 additions and 367 deletions
|
@ -81,12 +81,11 @@ module Serializers
|
|||
end
|
||||
|
||||
def contacts(type)
|
||||
contact_pool = begin
|
||||
if type == :tech
|
||||
domain.tech_contacts
|
||||
elsif type == :admin
|
||||
domain.admin_contacts
|
||||
end
|
||||
contact_pool = case type
|
||||
when :tech
|
||||
domain.tech_contacts
|
||||
when :admin
|
||||
domain.admin_contacts
|
||||
end
|
||||
|
||||
array_of_contacts = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue