From 3b25c3feee139229cf4c590f3ce1bb99f3288bd2 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 2 Dec 2018 00:56:00 +0100 Subject: Fix linting issues --- src/features/delayApp/index.js | 2 +- src/features/serviceProxy/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/features') diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js index 92d2dcf6a..9ffa1d2fd 100644 --- a/src/features/delayApp/index.js +++ b/src/features/delayApp/index.js @@ -44,7 +44,7 @@ export default function init(stores) { shownAfterLaunch = true; return; } - + const diff = moment().diff(timeLastDelay); if ((stores.app.isFocused && diff >= config.delayOffset) || !shownAfterLaunch) { debug(`App will be delayed for ${config.delayDuration / 1000}s`); diff --git a/src/features/serviceProxy/index.js b/src/features/serviceProxy/index.js index 5a74685a4..cad9844fd 100644 --- a/src/features/serviceProxy/index.js +++ b/src/features/serviceProxy/index.js @@ -1,4 +1,4 @@ -import { autorun, reaction, observable } from 'mobx'; +import { autorun, observable } from 'mobx'; import { remote } from 'electron'; import { DEFAULT_FEATURES_CONFIG } from '../../config'; @@ -30,7 +30,7 @@ export default function init(stores) { if (config.isEnabled && (isPremiumUser || !config.isPremium)) { const serviceProxyConfig = stores.settings.proxy[service.id]; - + if (serviceProxyConfig && serviceProxyConfig.isEnabled && serviceProxyConfig.host) { proxyHost = serviceProxyConfig.host; } -- cgit v1.2.3-70-g09d2