From fcc4b516a5b5333c7c1378d113fc8b8e4b22a634 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 26 Nov 2018 12:31:03 -0700 Subject: [PATCH] fix typo in logging --- .../ConversationView/ConversationViewController.m | 2 +- Signal/src/ViewControllers/MediaPageViewController.swift | 4 ++-- Signal/src/ViewControllers/MediaTileViewController.swift | 2 +- .../ViewControllers/AttachmentApprovalViewController.swift | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index b36e089e4..7e6aefde9 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -3466,7 +3466,7 @@ typedef enum : NSUInteger { - (void)showApprovalDialogForAttachment:(SignalAttachment *_Nullable)attachment { if (attachment == nil) { - OWSFailDebug(@"attachment was unexpetedly nil"); + OWSFailDebug(@"attachment was unexpectedly nil"); [self showErrorAlertForAttachment:nil]; return; } diff --git a/Signal/src/ViewControllers/MediaPageViewController.swift b/Signal/src/ViewControllers/MediaPageViewController.swift index d238a5a4d..02ac04b05 100644 --- a/Signal/src/ViewControllers/MediaPageViewController.swift +++ b/Signal/src/ViewControllers/MediaPageViewController.swift @@ -50,7 +50,7 @@ class MediaPageViewController: UIPageViewController, UIPageViewControllerDataSou public func setCurrentItem(_ item: MediaGalleryItem, direction: UIPageViewControllerNavigationDirection, animated isAnimated: Bool) { guard let galleryPage = self.buildGalleryPage(galleryItem: item) else { - owsFailDebug("unexpetedly unable to build new gallery page") + owsFailDebug("unexpectedly unable to build new gallery page") return } @@ -83,7 +83,7 @@ class MediaPageViewController: UIPageViewController, UIPageViewControllerDataSou self.delegate = self guard let initialPage = self.buildGalleryPage(galleryItem: initialItem) else { - owsFailDebug("unexpetedly unable to build initial gallery item") + owsFailDebug("unexpectedly unable to build initial gallery item") return } self.initialPage = initialPage diff --git a/Signal/src/ViewControllers/MediaTileViewController.swift b/Signal/src/ViewControllers/MediaTileViewController.swift index 2f9acb261..76db73209 100644 --- a/Signal/src/ViewControllers/MediaTileViewController.swift +++ b/Signal/src/ViewControllers/MediaTileViewController.swift @@ -616,7 +616,7 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryDa Logger.debug("with deletedSections: \(deletedSections) deletedItems: \(deletedItems)") guard let collectionView = self.collectionView else { - owsFailDebug("collectionView was unexpetedly nil") + owsFailDebug("collectionView was unexpectedly nil") return } diff --git a/SignalMessaging/ViewControllers/AttachmentApprovalViewController.swift b/SignalMessaging/ViewControllers/AttachmentApprovalViewController.swift index 040c54e6c..20506e570 100644 --- a/SignalMessaging/ViewControllers/AttachmentApprovalViewController.swift +++ b/SignalMessaging/ViewControllers/AttachmentApprovalViewController.swift @@ -414,7 +414,7 @@ public class AttachmentApprovalViewController: UIPageViewController, UIPageViewC private func setCurrentItem(_ item: SignalAttachmentItem, direction: UIPageViewControllerNavigationDirection, animated isAnimated: Bool) { guard let page = self.buildPage(item: item) else { - owsFailDebug("unexpetedly unable to build new page") + owsFailDebug("unexpectedly unable to build new page") return }