From 5d6164973e92fa8a3e3c18a0eb2e29494aea4f48 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 9 Dec 2018 20:48:25 +0100 Subject: Fix linting issues --- src/api/server/ServerApi.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/api/server') diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index 164419951..2871769a9 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js @@ -42,6 +42,7 @@ const API_VERSION = 'v1'; export default class ServerApi { recipePreviews = []; + recipes = []; // User @@ -522,8 +523,7 @@ export default class ServerApi { const request = await window.fetch(`${SERVER_URL}/${API_VERSION}/recipes/${s.service}`, this._prepareAuthRequest({ method: 'GET', - }), - ); + })); if (request.status === 200) { const data = await request.json(); @@ -549,9 +549,9 @@ export default class ServerApi { await this._bulkRecipeCheck(recipes); - return Promise.all(services - .map(async service => await this._prepareServiceModel(service)) // eslint-disable-line - ); + /* eslint-disable no-return-await */ + return Promise.all(services.map(async service => await this._prepareServiceModel(service))); + /* eslint-enable no-return-await */ } async _prepareServiceModel(service) { @@ -596,8 +596,7 @@ export default class ServerApi { } return recipe; - }), - ).catch(err => console.error('Can\'t load recipe', err)); + })).catch(err => console.error('Can\'t load recipe', err)); } _mapRecipePreviewModel(recipes) { -- cgit v1.2.3-54-g00ecf