fixed codeclimate errors (partically)

This commit is contained in:
dinsmol 2021-09-09 09:19:09 +03:00
parent 3f41ce4ab4
commit f4e0084895
103 changed files with 339 additions and 367 deletions

View file

@ -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 = []