From f3e396740fb8acc2d359a3f1ce83aeaf84803434 Mon Sep 17 00:00:00 2001 From: Anh Do Date: Wed, 13 Nov 2024 09:46:41 -0500 Subject: [PATCH] Minor tweak --- .../DataBrokerProtection/Model/DBPUICommunicationModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Model/DBPUICommunicationModel.swift b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Model/DBPUICommunicationModel.swift index a71a637c93..5ee507e390 100644 --- a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Model/DBPUICommunicationModel.swift +++ b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Model/DBPUICommunicationModel.swift @@ -372,7 +372,7 @@ struct DBPUIOptOutMatch: DBPUISendableMessage { extension DBPUIOptOutMatch { init?(profileMatch: DBPUIDataBrokerProfileMatch, matches: Int) { - guard let removedDate = profileMatch.timelineEvents.filter({ $0.type == .removed }).first?.date else { return nil } + guard let removedDate = profileMatch.timelineEvents.first(where: { $0.type == .removed })?.date else { return nil } let dataBroker = profileMatch.dataBroker self.init(dataBroker: dataBroker, matches: matches,