From 4518e95619d48b8029ba4e010b636252c869b442 Mon Sep 17 00:00:00 2001 From: Mikunj <mikunj@live.com.au> Date: Fri, 1 Feb 2019 11:35:23 +1100 Subject: [PATCH] Linting --- js/models/conversations.js | 1 + js/modules/loki_p2p_api.js | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index fe291c98c..3191f3319 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -7,6 +7,7 @@ /* global storage: false */ /* global textsecure: false */ /* global Whisper: false */ +/* global lokiP2pAPI: false */ /* eslint-disable more/no-then */ diff --git a/js/modules/loki_p2p_api.js b/js/modules/loki_p2p_api.js index ca8a13597..5cbbbdacd 100644 --- a/js/modules/loki_p2p_api.js +++ b/js/modules/loki_p2p_api.js @@ -16,7 +16,10 @@ class LokiP2pAPI extends EventEmitter { ? 60 * 1000 // 1 minute : 2 * 60 * 1000; // 2 minutes - if (this.contactP2pDetails[pubKey] && this.contactP2pDetails[pubKey].pingTimer) { + if ( + this.contactP2pDetails[pubKey] && + this.contactP2pDetails[pubKey].pingTimer + ) { clearTimeout(this.contactP2pDetails[pubKey].pingTimer); } this.contactP2pDetails[pubKey] = { @@ -67,7 +70,9 @@ class LokiP2pAPI extends EventEmitter { } isOnline(pubKey) { - return !!(this.contactP2pDetails[pubKey] && this.contactP2pDetails[pubKey].isOnline); + return !!( + this.contactP2pDetails[pubKey] && this.contactP2pDetails[pubKey].isOnline + ); } pingContact(pubKey) {