From ed1fbb5324b10d4034c39eefdac24b69430c04ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Mon, 19 Oct 2020 11:14:52 +0200 Subject: [PATCH] Linting --- back/src/Services/SocketManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/src/Services/SocketManager.ts b/back/src/Services/SocketManager.ts index d6cf44af..71bcf468 100644 --- a/back/src/Services/SocketManager.ts +++ b/back/src/Services/SocketManager.ts @@ -604,7 +604,7 @@ class SocketManager { } // Let's see if the current client has - const isAdmin = client.tags.indexOf(tag) !== -1; + const isAdmin = client.tags.includes(tag); // TODO: fix this when "moderator" property is available