Skip to content

Commit

Permalink
Address SwiftLint
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaemepereira committed Mar 21, 2024
1 parent ec65e1c commit 98cada1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit 98cada1

Please sign in to comment.