mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
Remove empty catch blocks, and update tslint rule (#1226)
This commit is contained in:
@@ -10,6 +10,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 { PaymentRequest } from 'jslib-common/models/request/paymentRequest';
|
||||
|
||||
@@ -35,7 +36,7 @@ export class AdjustPaymentComponent {
|
||||
formPromise: Promise<any>;
|
||||
|
||||
constructor(private apiService: ApiService, private i18nService: I18nService,
|
||||
private toasterService: ToasterService) { }
|
||||
private toasterService: ToasterService, private logService: LogService) { }
|
||||
|
||||
async submit() {
|
||||
try {
|
||||
@@ -60,7 +61,9 @@ export class AdjustPaymentComponent {
|
||||
await this.formPromise;
|
||||
this.toasterService.popAsync('success', null, this.i18nService.t('updatedPaymentMethod'));
|
||||
this.onAdjusted.emit();
|
||||
} catch { }
|
||||
} catch (e) {
|
||||
this.logService.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
cancel() {
|
||||
|
||||
Reference in New Issue
Block a user