From 7f1cbd927759970df3da7b5499589ce24aac94b7 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 7 May 2018 16:19:13 -0400 Subject: [PATCH] Respond to CR. --- Signal/src/ViewControllers/ContactViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ContactViewController.swift b/Signal/src/ViewControllers/ContactViewController.swift index 425a58b0e..e55f2f5d2 100644 --- a/Signal/src/ViewControllers/ContactViewController.swift +++ b/Signal/src/ViewControllers/ContactViewController.swift @@ -600,7 +600,7 @@ class ContactViewController: OWSViewController, CNContactViewControllerDelegate } // Note that we use "q" (i.e. query) rather than "address" since we can't assume // this is a well-formed address. - guard let url = NSURL(string: "http://maps.apple.com/?q=\(escapedMapAddress)") else { + guard let url = URL(string: "http://maps.apple.com/?q=\(escapedMapAddress)") else { owsFail("\(ContactViewController.logTag) could not open address.") return }