codeclimate fixes

This commit is contained in:
dinsmol 2021-07-08 17:56:42 +03:00
parent 5bed817c35
commit 33a855fbe7

View file

@ -24,11 +24,9 @@ class Epp::Contact < Contact
def validate_birthday_ident
return unless Depp::Contact::SELECTION_TYPES[2].include?(ident_type)
if begin
begin
Date.parse(ident)
rescue StandardError
ArgumentError
end == ArgumentError
rescue ArgumentError
add_epp_error('2308', nil, nil, I18n.t('epp.contacts.errors.valid_ident_date_format'))
@error = true
return