Skip to content

Commit

Permalink
fix: Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrdctr committed Jul 18, 2024
1 parent 4c43ce2 commit bb0fe21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Mail/Views/Thread/Message/InlineAttachmentWorker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ struct BodyImageProcessor {
return ImageBase64AndMime(base64String, attachment.mimeType)
}

let compressedImage = self.compressedBase64ImageAndMime(
let compressedImage = compressedBase64ImageAndMime(
attachmentData: attachmentData,
attachmentMime: attachment.mimeType
)
Expand Down Expand Up @@ -256,8 +256,7 @@ struct BodyImageProcessor {
public func injectImagesInBody(body: String?,
attachments: ArraySlice<Attachment>,
base64Images: [ImageBase64AndMime?]) async -> String? {
guard let body = body,
!body.isEmpty else {
guard let body, !body.isEmpty else {
return nil
}

Expand Down

0 comments on commit bb0fe21

Please sign in to comment.