refactor: fix lint on lib/realtime.js

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2019-08-02 01:01:34 +08:00
parent 2c7459c16e
commit 81cf993358
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 3 additions and 3 deletions

View File

@ -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);