diff options
| author | Georgios Andreadis <G.Andreadis@student.tudelft.nl> | 2017-01-27 10:26:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-27 10:26:54 +0100 |
| commit | 50fcb0634c9ebe894988103184d50d372bc76907 (patch) | |
| tree | 5af172c03599f7c680cd32205eab5329b841c85c /src/scripts/serverconnection.ts | |
| parent | 3ad08353d289720cf8f43e1dba078da43c35e97d (diff) | |
| parent | b462c9183ec7c2e41f14daad49f03d8afaa4ec59 (diff) | |
Merge pull request #4 from tudelft-atlarge/states-batch-fetch
Fetch experiment states in one batch
Diffstat (limited to 'src/scripts/serverconnection.ts')
| -rw-r--r-- | src/scripts/serverconnection.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scripts/serverconnection.ts b/src/scripts/serverconnection.ts index c7f6e598..e5cbf48a 100644 --- a/src/scripts/serverconnection.ts +++ b/src/scripts/serverconnection.ts @@ -11,7 +11,7 @@ export class ServerConnection { public static send(request: IRequest): Promise<any> { return new Promise((resolve, reject) => { - let checkUnimplemented = ServerConnection.interceptUnimplementedEndpoint(request); + const checkUnimplemented = ServerConnection.interceptUnimplementedEndpoint(request); if (checkUnimplemented) { resolve(checkUnimplemented.content); return; @@ -28,7 +28,7 @@ export class ServerConnection { } public static convertFlatToNestedPositionData(responseContent, resolve): void { - let nestPositionCoords = (content: any) => { + const nestPositionCoords = (content: any) => { if (content["positionX"] !== undefined) { content["position"] = { x: content["positionX"], @@ -56,4 +56,4 @@ export class ServerConnection { // Endpoints that are unimplemented can be intercepted here return null; } -}
\ No newline at end of file +} |
