From 38a341de95b0d6b6b025eff5859492a97e57f451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Sun, 10 May 2020 21:18:10 +0200 Subject: [PATCH] Fix unsafe negation. https://eslint.org/docs/rules/no-unsafe-negation --- static/sfu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/sfu.js b/static/sfu.js index e5ed992..f7f6322 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -691,7 +691,7 @@ function addUser(id, name) { function delUser(id, name) { if(!name) name = null; - if(!id in users) + if(!(id in users)) throw new Error('Unknown user id'); if(users[id] !== name) throw new Error('Inconsistent user name');