feat: use another optional chaining
This commit is contained in:
parent
b1b41d6e24
commit
b5c22141db
|
@ -239,7 +239,7 @@ export default class Core extends EventEmitter {
|
|||
timeout = Promises.createTimeout(this.options.socketTimeout, 'TCP')
|
||||
return await Promise.race([promise, timeout, this.abortedPromise])
|
||||
} finally {
|
||||
timeout && timeout.cancel()
|
||||
timeout?.cancel()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue