summaryrefslogtreecommitdiff
path: root/src/scripts/serverconnection.ts
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-01-26 23:26:20 +0100
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-01-26 23:26:20 +0100
commitb0b5253f66f5ba6e031f5a88dc1bef613517b3b6 (patch)
treef764e84ad48de6cb514cbc97e366c21d734e247c /src/scripts/serverconnection.ts
parent027b379cf9d53a12782781e586f79051461ab661 (diff)
Refactor remaining codebase to use 'const'
Diffstat (limited to 'src/scripts/serverconnection.ts')
-rw-r--r--src/scripts/serverconnection.ts6
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
+}