mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +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
|
def validate_birthday_ident
|
||||||
return unless Depp::Contact::SELECTION_TYPES[2].include?(ident_type)
|
return unless Depp::Contact::SELECTION_TYPES[2].include?(ident_type)
|
||||||
|
|
||||||
if begin
|
begin
|
||||||
Date.parse(ident)
|
Date.parse(ident)
|
||||||
rescue StandardError
|
rescue ArgumentError
|
||||||
ArgumentError
|
|
||||||
end == ArgumentError
|
|
||||||
add_epp_error('2308', nil, nil, I18n.t('epp.contacts.errors.valid_ident_date_format'))
|
add_epp_error('2308', nil, nil, I18n.t('epp.contacts.errors.valid_ident_date_format'))
|
||||||
@error = true
|
@error = true
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue