Skip to content

Commit

Permalink
refactor: Rename unclear variable "res"
Browse files Browse the repository at this point in the history
  • Loading branch information
lebojo committed Nov 12, 2024
1 parent ecc2e82 commit e12be5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MailCore/API/MailApiFetcher/MailApiFetcher+Common.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit e12be5b

Please sign in to comment.