mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 13:20:05 +03:00
style edits
This commit is contained in:
parent
b19472fdec
commit
214322792d
1 changed files with 2 additions and 4 deletions
6
email.d
6
email.d
|
@ -351,14 +351,12 @@ class MimePart {
|
|||
string gpgproto;
|
||||
|
||||
MimeAttachment toMimeAttachment() {
|
||||
import std.array: empty;
|
||||
|
||||
if(type == "multipart/mixed" && stuff.length == 1)
|
||||
if(type == "multipart/mixed" && stuff.length == 1)
|
||||
return stuff[0].toMimeAttachment;
|
||||
|
||||
MimeAttachment att;
|
||||
att.type = type;
|
||||
if ( att.type == "application/octet-stream" && filename.empty && !name.empty ) {
|
||||
if(att.type == "application/octet-stream" && filename.length == 0 && name.length > 0 ) {
|
||||
att.filename = name;
|
||||
} else {
|
||||
att.filename = filename;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue