mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-25 07:00:49 +01:00
Make GoLinter happy
This commit is contained in:
parent
62bf1ae33a
commit
13f4c54a27
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ func (mw *msgWriter) newPart(h map[string][]string) {
|
||||||
// writePart writes the corresponding part to the Msg body
|
// writePart writes the corresponding part to the Msg body
|
||||||
func (mw *msgWriter) writePart(p *Part, cs Charset) {
|
func (mw *msgWriter) writePart(p *Part, cs Charset) {
|
||||||
ct := fmt.Sprintf("%s; charset=%s", p.ctype, cs)
|
ct := fmt.Sprintf("%s; charset=%s", p.ctype, cs)
|
||||||
cte := fmt.Sprintf("%s", p.enc)
|
cte := p.enc.String()
|
||||||
if mw.d == 0 {
|
if mw.d == 0 {
|
||||||
mw.writeHeader(HeaderContentType, ct)
|
mw.writeHeader(HeaderContentType, ct)
|
||||||
mw.writeHeader(HeaderContentTransferEnc, cte)
|
mw.writeHeader(HeaderContentTransferEnc, cte)
|
||||||
|
|
Loading…
Reference in a new issue