mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
codeclimate fixes
This commit is contained in:
parent
5bed817c35
commit
33a855fbe7
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue