Skip to content

Commit

Permalink
chore: drop unnecessary guard against empty strings
Browse files Browse the repository at this point in the history
strings.FieldsFunc already filters out empty fields so this guard was unnecessary
  • Loading branch information
d--j committed Apr 18, 2023
1 parent 77c3e53 commit 6f9c0a8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions addr.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ func parseAddressList(in string) (list []*mail.Address, err error) {
return r == ',' || unicode.IsSpace(r) || r == '\r' || r == '\n'
})
for _, p := range parts {
if len(p) == 0 {
continue
}
if a, err := mail.ParseAddress(p); err != nil {
return nil, err
} else {
Expand Down

0 comments on commit 6f9c0a8

Please sign in to comment.