From 81cf99335881c64d4f411dbaccd04db91175bb52 Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Fri, 2 Aug 2019 01:01:34 +0800 Subject: [PATCH] refactor: fix lint on lib/realtime.js Signed-off-by: BoHong Li --- lib/realtime.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/realtime.js b/lib/realtime.js index 70665ee8..fe16c277 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -744,8 +744,8 @@ function queueForConnect (socket) { }) return socket.disconnect(true) } - let note = notes[noteId] - let user = users[socket.id] + const note = notes[noteId] + const user = users[socket.id] // update user color to author color if (note.authors[user.userid]) { user.color = users[socket.id].color = note.authors[user.userid].color @@ -766,7 +766,7 @@ function queueForConnect (socket) { socketClient.registerEventHandler() if (config.debug) { - let noteId = socket.noteId + const noteId = socket.noteId logger.info('SERVER connected a client to [' + noteId + ']:') logger.info(JSON.stringify(user)) // logger.info(notes);