From da0b7df1b5962500a36c3b9e748faca9fc3e8926 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 18 Jan 2018 15:40:47 -0500 Subject: [PATCH] Respond to CR. --- SignalShareExtension/ShareViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SignalShareExtension/ShareViewController.swift b/SignalShareExtension/ShareViewController.swift index 030a8e6823..c7490a8674 100644 --- a/SignalShareExtension/ShareViewController.swift +++ b/SignalShareExtension/ShareViewController.swift @@ -15,7 +15,7 @@ public class ShareViewController: UINavigationController, ShareViewDelegate, SAE enum ShareViewControllerError: Error { case assertionError(description: String) case unsupportedMedia - case NotRegistered(description: String) + case notRegistered() } private var hasInitialRootViewController = false @@ -372,7 +372,7 @@ public class ShareViewController: UINavigationController, ShareViewDelegate, SAE // If root view is an error view, do nothing. return } - throw ShareViewControllerError.NotRegistered(description: "User unregistered in \(#function)") + throw ShareViewControllerError.notRegistered() } // MARK: ShareViewDelegate, SAEFailedViewDelegate