Skip to content

Commit e561b08

Browse files
committed
fix: removed duplicated invalid email address validation error on bad emails
1 parent 957e7a8 commit e561b08

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

mapper/validator/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ func (d *DefaultService) Email(
205205
emailField,
206206
govalidatorfieldmail.ErrInvalidMailAddress,
207207
)
208+
return
208209
}
209210

210211
// Check if the mail address is valid

0 commit comments

Comments
 (0)