From c7d338202b70d526b84244b55ca3c18d4a6a925e Mon Sep 17 00:00:00 2001 From: Jordan Chapelle Date: Tue, 12 Nov 2024 16:51:18 +0100 Subject: [PATCH] refactor: Rename unclear variable "res" --- MailCore/API/MailApiFetcher/MailApiFetcher+Common.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MailCore/API/MailApiFetcher/MailApiFetcher+Common.swift b/MailCore/API/MailApiFetcher/MailApiFetcher+Common.swift index a703445a4..1569d3401 100644 --- a/MailCore/API/MailApiFetcher/MailApiFetcher+Common.swift +++ b/MailCore/API/MailApiFetcher/MailApiFetcher+Common.swift @@ -86,7 +86,7 @@ public extension MailApiFetcher { } func download(messages: [Message]) async throws -> [URL] { - var res: [URL] = [] + var downloadedMessageURLs: [URL] = [] let temporaryDirectory = FileManager.default.temporaryDirectory for message in messages { @@ -100,9 +100,9 @@ public extension MailApiFetcher { let download = authenticatedSession.download(Endpoint.resource(message.downloadResource).url, to: destination) let messageUrl = try await download.serializingDownloadedFileURL().value - res.append(messageUrl) + downloadedMessageURLs.append(messageUrl) } - return res + return downloadedMessageURLs } func quotas(mailbox: Mailbox) async throws -> Quotas {