*Change casting
This commit is contained in:
parent
225537fc39
commit
a3c61e2b66
|
@ -384,8 +384,8 @@ export default class DHTCache extends EventEmitter {
|
||||||
origin.toString("hex"),
|
origin.toString("hex"),
|
||||||
destination.toString("hex")
|
destination.toString("hex")
|
||||||
);
|
);
|
||||||
} catch (e: any) {
|
} catch (e) {
|
||||||
if (e.name !== "JSNetworkXError") throw e;
|
if ((e as Error).name !== "JSNetworkXError") throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue