From fe59b4512b9f02ff9e55b0794b56544b2e18ca62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Tue, 20 Jul 2021 09:30:45 +0200 Subject: [PATCH] Fixing CI --- back/src/Services/Repository/RedisVariablesRepository.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/back/src/Services/Repository/RedisVariablesRepository.ts b/back/src/Services/Repository/RedisVariablesRepository.ts index 70ff447a..95d757ca 100644 --- a/back/src/Services/Repository/RedisVariablesRepository.ts +++ b/back/src/Services/Repository/RedisVariablesRepository.ts @@ -10,14 +10,12 @@ export class RedisVariablesRepository implements VariablesRepositoryInterface { private readonly hset: OmitThisParameter<(arg1: [string, ...string[]]) => Promise>; private readonly hdel: OmitThisParameter<(arg1: string, arg2: string) => Promise>; - constructor(private redisClient: RedisClient) { - // @eslint-disable-next-line @typescript-eslint/unbound-method + /* eslint-disable @typescript-eslint/unbound-method */ this.hgetall = promisify(redisClient.hgetall).bind(redisClient); - // @eslint-disable-next-line @typescript-eslint/unbound-method this.hset = promisify(redisClient.hset).bind(redisClient); - // @eslint-disable-next-line @typescript-eslint/unbound-method this.hdel = promisify(redisClient.hdel).bind(redisClient); + /* eslint-enable @typescript-eslint/unbound-method */ } /** @@ -30,11 +28,10 @@ export class RedisVariablesRepository implements VariablesRepositoryInterface { } async saveVariable(roomUrl: string, key: string, value: string): Promise { - // The value is passed to JSON.stringify client side. If value is "undefined", JSON.stringify returns "undefined" // which is translated to empty string when fetching the value in the pusher. // Therefore, empty string server side == undefined client side. - if (value === '') { + if (value === "") { return this.hdel(roomUrl, key); }