mirror of
https://github.com/internetee/registry.git
synced 2025-08-12 12:39:34 +02:00
Removed redundant begin clause
This commit is contained in:
parent
a0d5823979
commit
862b784761
1 changed files with 9 additions and 11 deletions
|
@ -23,7 +23,6 @@ module Epp::ContactsHelper
|
|||
def delete_contact
|
||||
ph = params_hash['epp']['command']['delete']['delete']
|
||||
|
||||
begin
|
||||
@contact = Contact.where(code: ph[:id]).first
|
||||
@contact.destroy
|
||||
render '/epp/contacts/delete'
|
||||
|
@ -34,7 +33,6 @@ module Epp::ContactsHelper
|
|||
epp_errors << {code: '2400', msg: t('errors.messages.epp_command_failed')}
|
||||
render '/epp/error'
|
||||
end
|
||||
end
|
||||
|
||||
def check_contact
|
||||
ph = params_hash['epp']['command']['check']['check']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue