generated from tpl/purs
fix: fuck
This commit is contained in:
parent
6c83726c53
commit
da860c8f39
@ -86,9 +86,9 @@ deliverableOnce email' = do
|
||||
{ reachable, syntax, mx, smtp } <- lift $ Promise.toAffE $ checkEmailImpl email
|
||||
when (not syntax.valid) $ throwError $ EmailSyntaxInvalid email'
|
||||
when (not mx.valid) $ throwError $ EmailMXInvalid email'
|
||||
when (not smtp.valid) $ throwError $ EmailSMTPInvalid email'
|
||||
when (maybe true Array.null $ Nullable.toMaybe $ mx.mxRecords) $ throwError $ EmailMXNoRecords email'
|
||||
for_ (Nullable.toMaybe $ smtp.error) $ throwError <<< EmailSMTPError email'
|
||||
when (not smtp.valid) $ throwError $ EmailSMTPInvalid email'
|
||||
when (not reachable) $ throwError $ EmailUnreachable email'
|
||||
pure email'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user