Respond to CR.

This commit is contained in:
Matthew Chen 2018-01-18 15:40:47 -05:00
parent 482ad08640
commit da0b7df1b5

View File

@ -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