dont await void methods

This commit is contained in:
Kyle Spearrin 2018-10-04 12:05:21 -04:00
parent 6b3dc2344f
commit 1f36c5fee6
1 changed files with 3 additions and 3 deletions

View File

@ -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<any> {
@ -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);
}