mirror of
https://github.com/bitwarden/jslib
synced 2025-12-13 14:53:23 +00:00
Remove empty catch blocks, and update tslint rule (#513)
This commit is contained in:
@@ -96,7 +96,9 @@ export class IconComponent implements OnChanges {
|
||||
try {
|
||||
this.image = this.iconsUrl + '/' + Utils.getHostname(hostnameUri) + '/icon.png';
|
||||
this.fallbackImage = 'images/fa-globe.png';
|
||||
} catch (e) { }
|
||||
} catch (e) {
|
||||
// Ignore error since the fallback icon will be shown if image is null.
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.image = null;
|
||||
|
||||
Reference in New Issue
Block a user