Lint fixes.

This commit is contained in:
Igor Solomennikov 2022-03-02 22:53:46 -08:00
parent 2bdf135f87
commit 96db5e1d03

View File

@ -282,9 +282,9 @@ extension SendMediaNavigationController: PhotoCaptureViewControllerDelegate {
}
func photoCaptureViewControllerViewWillAppear(_ photoCaptureViewController: PhotoCaptureViewController) {
if !photoCaptureViewController.isInBatchMode, attachmentCount == 1, case .camera(_) = attachmentDraftCollection.attachmentDrafts.last {
if !photoCaptureViewController.isInBatchMode, attachmentCount == 1, case .camera = attachmentDraftCollection.attachmentDrafts.last {
// User is navigating back to the camera screen, indicating they want to discard the previously captured item.
discardDraft()
discardDraft()
}
}