Update phase-manager.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Bertie690 2025-08-14 11:41:53 -04:00 committed by GitHub
parent 04734bd9bf
commit 22f36e7c18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -378,10 +378,6 @@ export class PhaseManager {
// Bang is justified as `populatePhaseQueue` ensures we always have _something_ in the queue at all times
this.currentPhase = this.phaseQueue.shift()!;
// TODO: Remove proof-of-concept error throw after test suite passes
if (!this.currentPhase) {
throw new Error("currentPhase was null after being started!");
}
const unactivatedConditionalPhases: [() => boolean, Phase][] = [];
// Check if there are any conditional phases queued