mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
collapse switch cases
This commit is contained in:
parent
55cb112ee9
commit
46351c116d
1 changed files with 0 additions and 2 deletions
|
@ -93,8 +93,6 @@ module.exports.validateEmailRemotely = email => (
|
|||
resolve({valid: true});
|
||||
break;
|
||||
case 'Scratch is not allowed to send email to this address.': // e.g., bad TLD or block-listed
|
||||
resolve({valid: false, errMsgId: 'registration.validationEmailInvalid'});
|
||||
break;
|
||||
case 'Enter a valid email address.':
|
||||
default:
|
||||
resolve({valid: false, errMsgId: 'registration.validationEmailInvalid'});
|
||||
|
|
Loading…
Reference in a new issue