From 95df3522a15631abc51a4295cae0ea401a8d4e1e Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 14 Sep 2021 19:58:52 +0200 Subject: feat: add eslint-plugin-unicorn (#1936) --- src/stores/FeaturesStore.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/stores/FeaturesStore.js') diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js index 1d50dd714..8e0134d7f 100644 --- a/src/stores/FeaturesStore.js +++ b/src/stores/FeaturesStore.js @@ -51,7 +51,9 @@ export default class FeaturesStore extends Store { let requestResult = {}; try { requestResult = this.featuresRequest.execute().result; - } catch (e) {} // eslint-disable-line no-empty + } catch (error) { + console.error(error); + } Object.assign(features, requestResult); } runInAction('FeaturesStore::_updateFeatures', () => { @@ -69,15 +71,15 @@ export default class FeaturesStore extends Store { } _setupFeatures() { - serviceProxy(this.stores, this.actions); - basicAuth(this.stores, this.actions); + serviceProxy(this.stores); + basicAuth(); workspaces(this.stores, this.actions); - quickSwitch(this.stores, this.actions); - nightlyBuilds(this.stores, this.actions); - publishDebugInfo(this.stores, this.actions); + quickSwitch(); + nightlyBuilds(); + publishDebugInfo(); settingsWS(this.stores, this.actions); communityRecipes(this.stores, this.actions); todos(this.stores, this.actions); - appearance(this.stores, this.actions); + appearance(this.stores); } } -- cgit v1.2.3-70-g09d2