From 30a891a83ce4bbbbaa6f6f3a13d2031b0a58188f Mon Sep 17 00:00:00 2001 From: vantezzen Date: Thu, 22 Aug 2019 21:40:07 +0200 Subject: Fix eslint errors --- src/api/server/ServerApi.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/api') diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index 069994028..46a5b928d 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js @@ -39,7 +39,6 @@ const { default: fetch } = remote.require('electron-fetch'); const SERVER_URL = API; const API_VERSION = 'v1'; -const API_URL = `${SERVER_URL}/${API_VERSION}`; export default class ServerApi { recipePreviews = []; @@ -56,15 +55,15 @@ export default class ServerApi { let url; if (!this.stores.settings) { // Stores have not yet been loaded - send invalid URL to force a retry when stores are loaded - url = 'https://localhost:9999' + url = 'https://localhost:9999'; } else if (this.stores.settings.all.app.server) { // Load URL from store url = this.stores.settings.all.app.server; } else { // Use default server url - url = SERVER_URL; + url = SERVER_URL; } - + return `${url}/${API_VERSION}`; } -- cgit v1.2.3-54-g00ecf