From 98cada1b3e81a653f4eafd9ac2362805dff7bdec Mon Sep 17 00:00:00 2001 From: Juan Manuel Pereira Date: Thu, 21 Mar 2024 15:52:05 -0300 Subject: [PATCH] Address SwiftLint --- .../Sources/DataBrokerProtection/UI/UIMapper.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/UI/UIMapper.swift b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/UI/UIMapper.swift index 714ea5593b..d57e2d2442 100644 --- a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/UI/UIMapper.swift +++ b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/UI/UIMapper.swift @@ -150,8 +150,8 @@ struct MapperToUI { } private func getLastScansInformation(brokerProfileQueryData: [BrokerProfileQueryData], - currentDate: Date = Date(), - format: String = "dd/MM/yyyy") -> DBPUIScanDate { + currentDate: Date = Date(), + format: String = "dd/MM/yyyy") -> DBPUIScanDate { let eightDaysBeforeToday = currentDate.addingTimeInterval(-8 * 24 * 60 * 60) let scansInTheLastEightDays = brokerProfileQueryData .filter { $0.scanOperationData.lastRunDate != nil && $0.scanOperationData.lastRunDate! <= currentDate && $0.scanOperationData.lastRunDate! > eightDaysBeforeToday } @@ -180,8 +180,8 @@ struct MapperToUI { } private func getNextScansInformation(brokerProfileQueryData: [BrokerProfileQueryData], - currentDate: Date = Date(), - format: String = "dd/MM/yyyy") -> DBPUIScanDate { + currentDate: Date = Date(), + format: String = "dd/MM/yyyy") -> DBPUIScanDate { let eightDaysAfterToday = currentDate.addingTimeInterval(8 * 24 * 60 * 60) let scansHappeningInTheNextEightDays = brokerProfileQueryData .filter { $0.scanOperationData.preferredRunDate != nil && $0.scanOperationData.preferredRunDate! > currentDate && $0.scanOperationData.preferredRunDate! < eightDaysAfterToday }