Skip to content

Commit 378e4a7

Browse files
committed
Unused result warning silenced
1 parent 12f2e1c commit 378e4a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

TestFoundation/TestNSIndexPath.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,10 @@ class TestNSIndexPath: XCTestCase {
277277
let ip2: IndexPath = [1, 1, 1]
278278

279279
XCTAssertNotEqual(ip1.hashValue, ip2.hashValue)
280-
281-
IndexPath(indexes: [Int.max >> 8, 2, Int.max >> 36]).hashValue // this should not cause an overflow crash
280+
281+
// this should not cause an overflow crash
282+
let hash: Int? = IndexPath(indexes: [Int.max >> 8, 2, Int.max >> 36]).hashValue
283+
XCTAssertNotNil(hash)
282284
}
283285

284286
func testEquality() {

0 commit comments

Comments
 (0)