Skip to content

Commit 947d2d0

Browse files
committed
client: remove null check
1 parent fda7f40 commit 947d2d0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/portalnetwork/src/client/client.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,7 @@ export class PortalNetwork extends (EventEmitter as { new (): PortalNetworkEvent
373373
await this.handleUTP(nodeAddress, message, message.request)
374374
return
375375
}
376-
if (src === null) {
377-
if (src === null) {
378-
this.logger('Received TALKREQ message with null sourceId')
379-
return
380-
}
381-
}
376+
382377
const network = this.networks.get(bytesToHex(message.protocol) as NetworkId)
383378
if (!network) {
384379
this.logger(`Received TALKREQ message on unsupported network ${bytesToHex(message.protocol)}`)

0 commit comments

Comments
 (0)