summaryrefslogtreecommitdiff
path: root/src/scripts/controllers/connection/cache.ts
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-01-26 23:11:29 +0100
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-01-26 23:11:29 +0100
commit027b379cf9d53a12782781e586f79051461ab661 (patch)
tree2a7601dce3b02b8e6984a9206849b97770ae585d /src/scripts/controllers/connection/cache.ts
parent45a1bdae27115974568fe8cfaff7c190d1963e28 (diff)
Refactor controllers to use 'const' when possible
Diffstat (limited to 'src/scripts/controllers/connection/cache.ts')
-rw-r--r--src/scripts/controllers/connection/cache.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/controllers/connection/cache.ts b/src/scripts/controllers/connection/cache.ts
index 15517519..c1c47c2d 100644
--- a/src/scripts/controllers/connection/cache.ts
+++ b/src/scripts/controllers/connection/cache.ts
@@ -62,7 +62,7 @@ export class CacheController {
}
public onFetch(request: IRequest, response: IResponse): any {
- let pathWithoutVersion = request.path.replace(/\/v\d+/, "");
+ const pathWithoutVersion = request.path.replace(/\/v\d+/, "");
this.routeCaches[pathWithoutVersion][request.parameters.path["id"]].status = CacheStatus.HIT;
this.routeCaches[pathWithoutVersion][request.parameters.path["id"]].object = response.content;