Skip to content

Commit

Permalink
skip unneeded nil assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Dec 15, 2023
1 parent 7202f35 commit 21f98a1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion DcShare/Helper/ShareAttachment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ class ShareAttachment {
result = ImageFormat.loadImageFrom(url: url)
default:
logger.error("Unexpected data: \(type(of: data))")
result = nil
}
if let result = result,
let path = ImageFormat.saveImage(image: result, directory: .cachesDirectory) {
Expand Down

0 comments on commit 21f98a1

Please sign in to comment.