[commands] Remove one more default command isFinished check (#4727)

This commit is contained in:
Starlight220
2022-11-28 23:44:37 +02:00
committed by GitHub
parent ca35a2e097
commit 15561338d5

View File

@@ -302,10 +302,6 @@ void CommandScheduler::SetDefaultCommand(Subsystem* subsystem,
throw FRC_MakeError(frc::err::CommandIllegalUse, "{}",
"Default commands must require their subsystem!");
}
if (defaultCommand.get()->IsFinished()) {
throw FRC_MakeError(frc::err::CommandIllegalUse, "{}",
"Default commands should not end!");
}
SetDefaultCommandImpl(subsystem, std::move(defaultCommand).Unwrap());
}