1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 07:43:16 +00:00

Remove empty catch blocks, and update tslint rule (#1226)

This commit is contained in:
Oscar Hinton
2021-10-20 18:30:04 +02:00
committed by GitHub
parent 4447b89b05
commit 044ac513ae
90 changed files with 516 additions and 222 deletions

View File

@@ -9,6 +9,7 @@ import { ToasterService } from 'angular2-toaster';
import { ApiService } from 'jslib-common/abstractions/api.service';
import { I18nService } from 'jslib-common/abstractions/i18n.service';
import { LogService } from 'jslib-common/abstractions/log.service';
import { MessagingService } from 'jslib-common/abstractions/messaging.service';
import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.service';
import { SyncService } from 'jslib-common/abstractions/sync.service';
@@ -38,7 +39,7 @@ export class PremiumComponent implements OnInit {
private toasterService: ToasterService, platformUtilsService: PlatformUtilsService,
private tokenService: TokenService, private router: Router,
private messagingService: MessagingService, private syncService: SyncService,
private userService: UserService) {
private userService: UserService, private logService: LogService) {
this.selfHosted = platformUtilsService.isSelfHost();
}
@@ -97,7 +98,9 @@ export class PremiumComponent implements OnInit {
});
}
await this.formPromise;
} catch { }
} catch (e) {
this.logService.error(e);
}
}
async finalizePremium() {