[commands] Remove unsafe default command isFinished check (#4411)

This commit is contained in:
Starlight220
2022-11-15 00:28:30 +02:00
committed by GitHub
parent 1269d2b901
commit 64838e6367
3 changed files with 0 additions and 10 deletions

View File

@@ -405,10 +405,6 @@ public final class CommandScheduler implements NTSendable, AutoCloseable {
throw new IllegalArgumentException("Default commands must require their subsystem!");
}
if (defaultCommand.isFinished()) {
throw new IllegalArgumentException("Default commands should not end!");
}
if (defaultCommand.getInterruptionBehavior() == InterruptionBehavior.kCancelIncoming) {
DriverStation.reportWarning(
"Registering a non-interruptible default command!\n"