From 1f36c5fee6a294f455de8c10c3d7316f708ec214 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 4 Oct 2018 12:05:21 -0400 Subject: [PATCH] dont await void methods --- src/services/environment.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/environment.service.ts b/src/services/environment.service.ts index cfc6a5e6c0..28f0f286b6 100644 --- a/src/services/environment.service.ts +++ b/src/services/environment.service.ts @@ -42,7 +42,7 @@ export class EnvironmentService implements EnvironmentServiceAbstraction { if (urls.base) { this.baseUrl = envUrls.base = urls.base; - await this.apiService.setUrls(envUrls); + this.apiService.setUrls(envUrls); return; } @@ -51,7 +51,7 @@ export class EnvironmentService implements EnvironmentServiceAbstraction { this.identityUrl = envUrls.identity = urls.identity; this.iconsUrl = urls.icons; this.notificationsUrl = urls.notifications; - await this.apiService.setUrls(envUrls); + this.apiService.setUrls(envUrls); } async setUrls(urls: any): Promise { @@ -86,7 +86,7 @@ export class EnvironmentService implements EnvironmentServiceAbstraction { envUrls.identity = this.identityUrl; } - await this.apiService.setUrls(envUrls); + this.apiService.setUrls(envUrls); if (this.notificationsService != null) { this.notificationsService.init(this); }