mirror of
https://github.com/bitwarden/jslib
synced 2025-12-17 00:33:17 +00:00
Remove empty catch blocks, and update tslint rule (#513)
This commit is contained in:
@@ -51,6 +51,7 @@ import { UserService } from '../abstractions/user.service';
|
||||
|
||||
import { ConstantsService } from './constants.service';
|
||||
|
||||
import { LogService } from '../abstractions/log.service';
|
||||
import { sequentialize } from '../misc/sequentialize';
|
||||
import { Utils } from '../misc/utils';
|
||||
|
||||
@@ -73,7 +74,8 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
constructor(private cryptoService: CryptoService, private userService: UserService,
|
||||
private settingsService: SettingsService, private apiService: ApiService,
|
||||
private fileUploadService: FileUploadService, private storageService: StorageService,
|
||||
private i18nService: I18nService, private searchService: () => SearchService) {
|
||||
private i18nService: I18nService, private searchService: () => SearchService,
|
||||
private logService: LogService) {
|
||||
}
|
||||
|
||||
get decryptedCipherCache() {
|
||||
@@ -423,7 +425,9 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
if (regex.test(url)) {
|
||||
return true;
|
||||
}
|
||||
} catch { }
|
||||
} catch (e) {
|
||||
this.logService.error(e);
|
||||
}
|
||||
break;
|
||||
case UriMatchType.Never:
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user