*Change casting
This commit is contained in:
parent
225537fc39
commit
a3c61e2b66
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue