Skip to content

Commit

Permalink
refactor: Use .distantFuture property
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed May 30, 2023
1 parent 37c3e7a commit 50cc387
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Mail/Utils/DateInterval+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ import Foundation

extension DateInterval {
// We simply want to define the future as an event that happens later
// The value of 100 years is arbitrary
static let future = DateInterval(start: Calendar.current.date(byAdding: .year, value: 100, to: .now)!, duration: 0)
static let future = DateInterval(start: .distantFuture, duration: 0)
}

0 comments on commit 50cc387

Please sign in to comment.