From dbcaaf98dc9523b4a5dbcf331ce4aa116a8e4730 Mon Sep 17 00:00:00 2001 From: Beaudan Date: Thu, 30 May 2019 17:18:17 +1000 Subject: [PATCH] Lint --- js/modules/loki_message_api.js | 5 ++++- js/modules/loki_rpc.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/modules/loki_message_api.js b/js/modules/loki_message_api.js index e2354a94d..f7431b251 100644 --- a/js/modules/loki_message_api.js +++ b/js/modules/loki_message_api.js @@ -160,7 +160,10 @@ class LokiMessageAPI { // Make sure we aren't doing too much PoW const currentDifficulty = window.storage.get('PoWDifficulty', null); const newDifficulty = result.difficulty; - if (!Number.isNaN(newDifficulty) && newDifficulty !== currentDifficulty) { + if ( + !Number.isNaN(newDifficulty) && + newDifficulty !== currentDifficulty + ) { window.storage.put('PoWDifficulty', newDifficulty); } return true; diff --git a/js/modules/loki_rpc.js b/js/modules/loki_rpc.js index 1f4b29f4c..861396032 100644 --- a/js/modules/loki_rpc.js +++ b/js/modules/loki_rpc.js @@ -19,7 +19,7 @@ const decryptResponse = async (response, address) => { log.warn(`Could not decrypt response from ${address}`, e); } return {}; -} +}; // A small wrapper around node-fetch which deserializes response const fetch = async (url, options = {}) => {