From faf1b4b66b64c7182a0b94af27dc0b73937a7a45 Mon Sep 17 00:00:00 2001 From: Beaudan Date: Mon, 15 Apr 2019 14:53:01 +1000 Subject: [PATCH] Lint --- app/sql.js | 1 - js/modules/job_queue.js | 2 +- js/modules/loki_message_api.js | 6 +++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/sql.js b/app/sql.js index 96f2ff7e9..576c8ef93 100644 --- a/app/sql.js +++ b/app/sql.js @@ -1753,7 +1753,6 @@ async function getLastHashBySnode(snode) { $snode: snode, }); - if (!row) { return null; } diff --git a/js/modules/job_queue.js b/js/modules/job_queue.js index 4a4a14b41..fa0ca6038 100644 --- a/js/modules/job_queue.js +++ b/js/modules/job_queue.js @@ -21,4 +21,4 @@ class JobQueue { module.exports = { JobQueue, -} +}; diff --git a/js/modules/loki_message_api.js b/js/modules/loki_message_api.js index 75e47a075..d09052ef2 100644 --- a/js/modules/loki_message_api.js +++ b/js/modules/loki_message_api.js @@ -210,7 +210,11 @@ class LokiMessageAPI { if (Array.isArray(result.messages) && result.messages.length) { const lastMessage = _.last(result.messages); - lokiSnodeAPI.updateLastHash(nodeUrl, lastMessage.hash, lastMessage.expiration); + lokiSnodeAPI.updateLastHash( + nodeUrl, + lastMessage.hash, + lastMessage.expiration + ); const filteredMessages = await this.jobQueue.add(() => filterIncomingMessages(result.messages) );