change variable name

This commit is contained in:
einhorn_b 2024-01-25 13:20:02 +01:00
parent 7de4a3d284
commit e7b3cda215

View File

@ -54,10 +54,10 @@ export class InterruptiveSleepManager {
if (!this.interruptiveSleep.has(key)) {
this.interruptiveSleep.set(key, new InterruptiveSleep(this.stepSizeMilliseconds))
}
const cond = this.interruptiveSleep.get(key)
if (!cond) {
const interruptiveSleep = this.interruptiveSleep.get(key)
if (!interruptiveSleep) {
throw new LogError('map entry not exist after setting it')
}
return cond.sleep(ms)
return interruptiveSleep.sleep(ms)
}
}