From fce5c0fd112e16ebeb1b654b4f3944e50ca3bd35 Mon Sep 17 00:00:00 2001 From: Marcus Longmuir Date: Mon, 9 Apr 2018 13:30:07 +0100 Subject: [PATCH] Lint fixes --- ts/src/transports/websocket.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/src/transports/websocket.ts b/ts/src/transports/websocket.ts index 23101edc..4eedbdc9 100644 --- a/ts/src/transports/websocket.ts +++ b/ts/src/transports/websocket.ts @@ -49,7 +49,7 @@ export default function websocketRequest(options: TransportOptions): Transport { } }, start: (metadata: Metadata) => { - ws = new WebSocket(webSocketAddress, ['grpc-websockets']); + ws = new WebSocket(webSocketAddress, ["grpc-websockets"]); ws.binaryType = "arraybuffer"; ws.onopen = function () { options.debug && debug("websocketRequest.onopen"); @@ -98,9 +98,9 @@ function constructWebSocketAddress(url: string) { } function headersToBytes(headers: Metadata): Uint8Array { - let asString = ''; + let asString = ""; headers.forEach((key, values) => { - asString += `${key}: ${values.join(', ')}\r\n`; + asString += `${key}: ${values.join(", ")}\r\n`; }); return encodeASCII(asString); }