Skip to content

Commit ad0ed2c

Browse files
authored
(116818929) Fix a few warnings in CalendarTests
1 parent 8010dfe commit ad0ed2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/FoundationInternationalizationTests/CalendarTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,9 @@ final class CalendarTests : XCTestCase {
660660
let date = Date(timeIntervalSinceReferenceDate: 2.4499581972890255e+18)
661661
let calendar = Calendar(identifier: .gregorian)
662662
let components = DateComponents(weekOfMonth: 3)
663-
let next = calendar.nextDate(after: date, matching: components, matchingPolicy: .nextTime)
664-
let nextSmaller = calendar.nextDate(after: date, matching: components, matchingPolicy: .nextTimePreservingSmallerComponents)
665-
let previous = calendar.nextDate(after: date, matching: components, matchingPolicy: .previousTimePreservingSmallerComponents)
663+
_ = calendar.nextDate(after: date, matching: components, matchingPolicy: .nextTime)
664+
_ = calendar.nextDate(after: date, matching: components, matchingPolicy: .nextTimePreservingSmallerComponents)
665+
_ = calendar.nextDate(after: date, matching: components, matchingPolicy: .previousTimePreservingSmallerComponents)
666666
}
667667
}
668668

0 commit comments

Comments
 (0)