Skip to content

Commit e41128e

Browse files
committed
Use Void over () on LanguageServerProtocolJSONRPC.
1 parent 9c6fd98 commit e41128e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/LanguageServerProtocolJSONRPC/JSONRPCConnection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public final class JSONRPCConection {
4242
var requestType: _RequestType.Type
4343
var responseType: ResponseType.Type
4444
var queue: DispatchQueue
45-
var replyHandler: (LSPResult<Any>) -> ()
45+
var replyHandler: (LSPResult<Any>) -> Void
4646
}
4747

4848
/// The set of currently outstanding outgoing requests along with information about how to decode and handle their responses.
@@ -296,7 +296,7 @@ extension JSONRPCConection: _IndirectConnection {
296296
}
297297
}
298298

299-
public func send<Request>(_ request: Request, queue: DispatchQueue, reply: @escaping (LSPResult<Request.Response>) -> ()) -> RequestID where Request: RequestType {
299+
public func send<Request>(_ request: Request, queue: DispatchQueue, reply: @escaping (LSPResult<Request.Response>) -> Void) -> RequestID where Request: RequestType {
300300

301301
let id: RequestID = self.queue.sync {
302302
let id = nextRequestID()

0 commit comments

Comments
 (0)