Integrate some copilot review suggestions

This commit is contained in:
Garth Vander Houwen 2025-05-25 09:00:48 -07:00
parent 825b198e60
commit d56f55d6f0

View file

@ -149,7 +149,7 @@ struct MeshtasticAppleApp: App {
}
func handleContactUrl(url: URL) {
let components = self.incomingUrl?.absoluteString.components(separatedBy: "#") ?? []
let components = url.absoluteString.components(separatedBy: "#")
// Extract contact information from the URL
if let contactData = components.last {
@ -161,7 +161,7 @@ struct MeshtasticAppleApp: App {
// Show an alert to confirm adding the contact
let alertController = UIAlertController(
title: "Add Contact",
message: "Would you like to add \(contact.user.longName) as a contact?",
message: "Would you like to add \(contact.user.longName) as a contact?",
preferredStyle: .alert
)