From 1d5d547ac0ef3cd91e5321da4fd9a0187d6cf3d3 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Fri, 19 Aug 2022 15:09:54 +0200 Subject: [PATCH] lint --- bin/callback.js | 4 ++-- bin/utils.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/callback.js b/bin/callback.js index b0e49e5..4da8163 100644 --- a/bin/callback.js +++ b/bin/callback.js @@ -14,7 +14,7 @@ exports.isCallbackSet = !!CALLBACK_URL exports.callbackHandler = (update, origin, doc) => { const room = doc.name const dataToSend = { - room: room, + room, data: {} } const sharedObjectList = Object.keys(CALLBACK_OBJECTS) @@ -39,7 +39,7 @@ const callbackRequest = (url, timeout, data) => { hostname: url.hostname, port: url.port, path: url.pathname, - timeout: timeout, + timeout, method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/bin/utils.js b/bin/utils.js index 71feb7e..311f905 100644 --- a/bin/utils.js +++ b/bin/utils.js @@ -168,9 +168,9 @@ const messageListener = (conn, doc, message) => { case messageSync: encoding.writeVarUint(encoder, messageSync) syncProtocol.readSyncMessage(decoder, encoder, doc, null) - - // If the `encoder` only contains the type of reply message and no - // message, there is no need to send the message. When `encoder` only + + // If the `encoder` only contains the type of reply message and no + // message, there is no need to send the message. When `encoder` only // contains the type of reply, its length is 1. if (encoding.length(encoder) > 1) { send(doc, conn, encoding.toUint8Array(encoder))