- Fix issue #94

- Fix linter
- Remove useless code/deadcode
This commit is contained in:
Nicolas JUHEL
2021-04-13 13:08:49 +02:00
parent 499b5ee613
commit dbb443eb65
48 changed files with 673 additions and 1418 deletions

View File

@@ -28,9 +28,9 @@ package mail
type ContentType uint8
const (
// TextPlain sets body type to text/plain in message body
// ContentPlainText sets body type to text/plain in message body.
ContentPlainText ContentType = iota
// TextHTML sets body type to text/html in message body
// ContentHTML sets body type to text/html in message body.
ContentHTML
)
@@ -44,14 +44,3 @@ func (c ContentType) String() string {
return ContentPlainText.String()
}
func (c ContentType) getContentType() string {
switch c {
case ContentPlainText:
return "text/plain"
case ContentHTML:
return "text/html"
}
return ContentPlainText.getContentType()
}