mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
fixed codeclimate errors
This commit is contained in:
parent
f4e0084895
commit
e7e3278267
44 changed files with 118 additions and 150 deletions
|
@ -43,9 +43,7 @@ module Actions
|
|||
end
|
||||
|
||||
def assign_new_registrant
|
||||
unless params[:registrant][:code]
|
||||
domain.add_epp_error('2306', nil, nil, %i[registrant cannot_be_missing])
|
||||
end
|
||||
domain.add_epp_error('2306', nil, nil, %i[registrant cannot_be_missing]) unless params[:registrant][:code]
|
||||
|
||||
regt = Registrant.find_by(code: params[:registrant][:code])
|
||||
unless regt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue