ソースを参照

doc: remove unnecessary comments (#92)

Removing comments that don't add significantly useful context.
Jens Rantil 5 年 前
コミット
a0b5c5b58b
1 ファイル変更0 行追加2 行削除
  1. 0 2
      email.go

+ 0 - 2
email.go

@@ -245,11 +245,9 @@ func (e *Email) Attach(r io.Reader, filename string, c string) (a *Attachment, e
 		Header:   textproto.MIMEHeader{},
 		Content:  buffer.Bytes(),
 	}
-	// Get the Content-Type to be used in the MIMEHeader
 	if c != "" {
 		at.Header.Set("Content-Type", c)
 	} else {
-		// If the Content-Type is blank, set the Content-Type to "application/octet-stream"
 		at.Header.Set("Content-Type", "application/octet-stream")
 	}
 	at.Header.Set("Content-Disposition", fmt.Sprintf("attachment;\r\n filename=\"%s\"", filename))