Respond to CR.

pull/1/head
Matthew Chen 8 years ago
parent 115e98af15
commit 585f15a012

@ -613,7 +613,7 @@ public class ShareViewController: UINavigationController, ShareViewDelegate, SAE
let tempFilePath = OWSFileSystem.temporaryFilePath(withFileExtension:"png") let tempFilePath = OWSFileSystem.temporaryFilePath(withFileExtension:"png")
do { do {
let url = NSURL.fileURL(withPath:tempFilePath) let url = NSURL.fileURL(withPath:tempFilePath)
try data.write(to: url, options: .atomicWrite) try data.write(to: url)
fulfill((url, srcUtiType)) fulfill((url, srcUtiType))
} catch { } catch {
reject(ShareViewControllerError.assertionError(description: "couldn't write UIImage: \(String(describing: error))")) reject(ShareViewControllerError.assertionError(description: "couldn't write UIImage: \(String(describing: error))"))

Loading…
Cancel
Save