mirror of
https://github.com/bitwarden/jslib
synced 2025-12-14 23:33:36 +00:00
Remove empty catch blocks, and update tslint rule (#513)
This commit is contained in:
@@ -27,7 +27,9 @@ export class AttachmentView implements View {
|
||||
if (this.size != null) {
|
||||
return parseInt(this.size, null);
|
||||
}
|
||||
} catch { }
|
||||
} catch {
|
||||
// Invalid file size.
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,9 @@ export class SendFileView implements View {
|
||||
if (this.size != null) {
|
||||
return parseInt(this.size, null);
|
||||
}
|
||||
} catch { }
|
||||
} catch {
|
||||
// Invalid file size.
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user