Fixed inconsistent single quotes (#154)

This commit is contained in:
Dan Kirkham 2017-01-25 17:43:02 +00:00 committed by Pawel Kadluczka
parent 3ad8efb4ab
commit acd1dc5e24
1 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ export class Connection {
this.connectionState = ConnectionState.Disconnected; this.connectionState = ConnectionState.Disconnected;
} }
async start(transportName: string = 'webSockets'): Promise<void> { async start(transportName: string = "webSockets"): Promise<void> {
if (this.connectionState != ConnectionState.Disconnected) { if (this.connectionState != ConnectionState.Disconnected) {
throw new Error("Cannot start a connection that is not in the 'Disconnected' state"); throw new Error("Cannot start a connection that is not in the 'Disconnected' state");
} }
@ -50,13 +50,13 @@ export class Connection {
} }
private createTransport(transportName: string): ITransport { private createTransport(transportName: string): ITransport {
if (transportName === 'webSockets') { if (transportName === "webSockets") {
return new WebSocketTransport(); return new WebSocketTransport();
} }
if (transportName === 'serverSentEvents') { if (transportName === "serverSentEvents") {
return new ServerSentEventsTransport(this.httpClient); return new ServerSentEventsTransport(this.httpClient);
} }
if (transportName === 'longPolling') { if (transportName === "longPolling") {
return new LongPollingTransport(this.httpClient); return new LongPollingTransport(this.httpClient);
} }