From d7f71650ea4c605315b5a180b09ec8db9345b588 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Wed, 5 Feb 2020 10:37:55 +1100 Subject: [PATCH] Linting --- js/models/messages.js | 6 ++++-- js/modules/loki_app_dot_net_api.js | 11 +++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/js/models/messages.js b/js/models/messages.js index d40f1bba8..ac268f332 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -2323,8 +2323,10 @@ Friends -> Friends The cases where we auto accept are the following: - - We sent the user a friend request and that user sent us a friend request. - - We are friends with the user, and that user just sent us a friend request. + - We sent the user a friend request, + and that user sent us a friend request. + - We are friends with the user, + and that user just sent us a friend request. */ const isFriend = sendingDeviceConversation.isFriend(); const hasSentFriendRequest = sendingDeviceConversation.hasSentFriendRequest(); diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index cf66cd80d..a3d92cfb6 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -496,7 +496,9 @@ class LokiAppDotNetServerAPI { )); } else { // disable check for .loki - process.env.NODE_TLS_REJECT_UNAUTHORIZED = endpoint.match(/\.loki\//) ? 0 : 1; + process.env.NODE_TLS_REJECT_UNAUTHORIZED = endpoint.match(/\.loki\//) + ? 0 + : 1; result = await nodeFetch(url, fetchOptions); // always make sure this check is enabled process.env.NODE_TLS_REJECT_UNAUTHORIZED = 1; @@ -505,7 +507,12 @@ class LokiAppDotNetServerAPI { } } catch (e) { if (txtResponse) { - log.info(`serverRequest ${mode} error`, e.code, e.message, `json: ${txtResponse}`); + log.info( + `serverRequest ${mode} error`, + e.code, + e.message, + `json: ${txtResponse}` + ); } else { log.info(`serverRequest ${mode} error`, e.code, e.message); }