*Change casting

This commit is contained in:
Derrick Hammer 2022-12-17 09:07:03 -05:00
parent 225537fc39
commit a3c61e2b66
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -384,8 +384,8 @@ export default class DHTCache extends EventEmitter {
origin.toString("hex"),
destination.toString("hex")
);
} catch (e: any) {
if (e.name !== "JSNetworkXError") throw e;
} catch (e) {
if ((e as Error).name !== "JSNetworkXError") throw e;
}
}