Make GoLinter happy

This commit is contained in:
Winni Neessen 2022-03-13 20:04:30 +01:00
parent 62bf1ae33a
commit 13f4c54a27
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -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)