always use template strings instead of string concatenation

This commit is contained in:
zadam
2022-12-21 15:19:05 +01:00
parent ea006993f6
commit 1b24276a4a
154 changed files with 433 additions and 437 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ async function setupSyncFromSyncServer(syncServerHost, syncProxy, password) {
// response is expected to contain documentId and documentSecret options
const resp = await request.exec({
method: 'get',
url: syncServerHost + '/api/setup/sync-seed',
url: `${syncServerHost}/api/setup/sync-seed`,
auth: { password },
proxy: syncProxy,
timeout: 30000 // seed request should not take long
@@ -93,7 +93,7 @@ async function setupSyncFromSyncServer(syncServerHost, syncProxy, password) {
return { result: 'success' };
}
catch (e) {
log.error("Sync failed: " + e.message);
log.error(`Sync failed: ${e.message}`);
return {
result: 'failure',