From d031b9414dfaa7bcd06104e66b44b7ac93ed7c76 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 27 Nov 2024 03:35:56 +0100 Subject: [PATCH] Renamed findAttachment() to getAttachment() --- .../main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt index 8cfb9b3..98767d1 100644 --- a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt +++ b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt @@ -140,7 +140,7 @@ open class EmailsFetcher( val attachmentParts = parts.filter { it !in messageBodyParts } val attachments = attachmentParts.mapNotNull { part -> - findAttachment(part, status) + getAttachment(part, status) } val email = Email( @@ -156,7 +156,7 @@ open class EmailsFetcher( return email } - protected open fun findAttachment(messagePart: MessagePart, status: FetchEmailsStatus): EmailAttachment? { + protected open fun getAttachment(messagePart: MessagePart, status: FetchEmailsStatus): EmailAttachment? { try { val part = messagePart.part if (part.fileName == null) { // not an attachment