mirror of https://github.com/grpc/grpc-node.git
Use optional chaining
This commit is contained in:
parent
c0f53f2238
commit
f345f82851
|
@ -101,7 +101,8 @@ export class SubchannelPool {
|
|||
}, REF_CHECK_INTERVAL);
|
||||
|
||||
// Unref because this timer should not keep the event loop running.
|
||||
this.cleanupTimer.unref && this.cleanupTimer.unref();
|
||||
// Call unref only if it exists to address electron/electron#21162
|
||||
this.cleanupTimer.unref?.();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue