Skip to content

Commit 1a45220

Browse files
committed
Fixed minor formatting issues
1 parent 087ea64 commit 1a45220

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/LanguageServerProtocolJSONRPCTests/ConnectionTests.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ class ConnectionTests: XCTestCase {
6464
let notification1 = try JSONEncoder().encode(JSONRPCMessage.notification(EchoNotification(string: "hello!")))
6565
let notification2 = try JSONEncoder().encode(JSONRPCMessage.notification(EchoNotification(string: "no way!")))
6666

67-
let notification1Str: String = "Content-Length: \(notification1.count)\r\n\r\n\(String(data: notification1, encoding: .utf8)!)"
68-
let notfication2Str: String = "Content-Length: \(notification2.count)\r\n\r\n\(String(data: notification2, encoding: .utf8)!)"
67+
let notification1Str =
68+
"Content-Length: \(notification1.count)\r\n\r\n\(String(data: notification1, encoding: .utf8)!)"
69+
let notfication2Str =
70+
"Content-Length: \(notification2.count)\r\n\r\n\(String(data: notification2, encoding: .utf8)!)"
6971

7072
for b in notification1Str.utf8.dropLast() {
7173
clientConnection.send(_rawData: [b].withUnsafeBytes { DispatchData(bytes: $0) })

0 commit comments

Comments
 (0)