1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +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

@@ -4,6 +4,7 @@ import { ToasterService } from 'angular2-toaster';
import { CryptoService } from 'jslib-common/abstractions/crypto.service';
import { I18nService } from 'jslib-common/abstractions/i18n.service';
import { LogService } from 'jslib-common/abstractions/log.service';
import { PasswordVerificationRequest } from 'jslib-common/models/request/passwordVerificationRequest';
@@ -30,7 +31,7 @@ export class ApiKeyComponent {
clientSecret: string;
constructor(private i18nService: I18nService, private toasterService: ToasterService,
private cryptoService: CryptoService) { }
private cryptoService: CryptoService, private logService: LogService) { }
async submit() {
if (this.masterPassword == null || this.masterPassword === '') {
@@ -46,6 +47,8 @@ export class ApiKeyComponent {
const response = await this.formPromise;
this.clientSecret = response.apiKey;
this.clientId = `${this.keyType}.${this.entityId}`;
} catch { }
} catch (e) {
this.logService.error(e);
}
}
}