Remove some easy any usages

This commit is contained in:
Daniel Imms
2026-02-01 07:48:40 -08:00
parent e96748cc79
commit 5316cb0812
8 changed files with 21 additions and 20 deletions
+4 -2
View File
@@ -132,8 +132,10 @@ export class ImageStorage implements IDisposable {
) {
try {
this.setLimit(this._opts.storageLimit);
} catch (e: any) {
console.error(e.message);
} catch (e: unknown) {
if (e instanceof Error) {
console.error(e.message);
}
console.warn(`storageLimit is set to ${this.getLimit()} MB`);
}
this._viewportMetrics = {