Skip to content

Commit c435245

Browse files
committed
Remove unnecessary content type check
The code above already confirms the content type is multipart, which inherently can not start with "message/".
1 parent e4dc69c commit c435245

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/RT/Attachment.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ sub ContentAsMIME {
564564
}
565565

566566
if ($entity->is_multipart) {
567-
if ($opts{'Children'} and not $self->IsMessageContentType) {
567+
if ($opts{'Children'}) {
568568
my $children = $self->Children;
569569
while (my $child = $children->Next) {
570570
$entity->add_part( $child->ContentAsMIME(%opts) );

0 commit comments

Comments
 (0)