Removed redundant begin clause

This commit is contained in:
Andres Keskküla 2014-08-07 17:24:57 +03:00
parent a0d5823979
commit 862b784761

View file

@ -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']