Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
quanganhdo committed Nov 13, 2024
1 parent ad9ce10 commit f3e3967
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f3e3967

Please sign in to comment.