From ea6ad5f1ffcbef5fa322871e6a81d081ded42eaa Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 23 Aug 2022 12:53:22 -0700 Subject: [PATCH] LanguageServerProtocolJSONRPCTests: silence a warning `Sleep` is a `void` returning function, which makes the blackhole redundant. Remove the unnecessary assignment which also silences the warning associated with it. --- Tests/LanguageServerProtocolJSONRPCTests/ConnectionTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/LanguageServerProtocolJSONRPCTests/ConnectionTests.swift b/Tests/LanguageServerProtocolJSONRPCTests/ConnectionTests.swift index e78654a1..d0c1e8e5 100644 --- a/Tests/LanguageServerProtocolJSONRPCTests/ConnectionTests.swift +++ b/Tests/LanguageServerProtocolJSONRPCTests/ConnectionTests.swift @@ -264,7 +264,7 @@ class ConnectionTests: XCTestCase { to.fileHandleForWriting.closeFile() #if os(Windows) // 1 ms was chosen for simplicity. - _ = Sleep(1) + Sleep(1) #else // 100 us was chosen empirically to encourage races. usleep(100)