Clean up ahead of PR.

pull/1/head
Matthew Chen 7 years ago
parent 87f5648fcf
commit 374714c456

@ -609,6 +609,10 @@ public class ShareViewController: UINavigationController, ShareViewDelegate, SAE
fulfill((itemUrl: url, utiType: srcUtiType))
}
} else {
// It's unavoidable that we may sometimes receives data types that we
// don't know how to handle.
//
// See comments on NSItemProvider+OWS.h.
let unexpectedTypeError = ShareViewControllerError.assertionError(description: "unexpected value: \(String(describing: value))")
reject(unexpectedTypeError)
}

Loading…
Cancel
Save