Commit ab24fe7
Remove superfluous validateLine() calls in sendMail()
Client.SendMail() already calls validateLine() via Client.Mail() and
Client.Rcpt(), so there is no need to have these checks in sendMail().
Having these checks don't hurt as such, but looking at just the
sendMail() function it's not obvious whether these checks are needed if
you want to implement your own SendMail()-type function. With this
change, you can copy/paste sendMail(), add the smtp. package selector,
and modify as needed.
Also removes a superfluous nil check as a bonus.1 parent 6944e33 commit ab24fe7
1 file changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | 747 | | |
757 | 748 | | |
758 | 749 | | |
| |||
0 commit comments