From 214322792da77c88a93880e2dfc27d7a2a6bcec1 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Thu, 12 Aug 2021 16:43:50 -0400 Subject: [PATCH] style edits --- email.d | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/email.d b/email.d index 83206ba..e4f78f7 100644 --- a/email.d +++ b/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;