We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede024e commit a7702d0Copy full SHA for a7702d0
wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/CommandScheduler.java
@@ -264,9 +264,7 @@ public void run() {
264
265
boolean isDisabled = RobotState.isDisabled();
266
// Run scheduled commands, remove finished commands.
267
- for (Iterator<Command> iterator = Set.copyOf(m_scheduledCommands).iterator();
268
- iterator.hasNext(); ) {
269
- Command command = iterator.next();
+ for (Command command : Set.copyOf(m_scheduledCommands)) {
270
if (!isScheduled(command)) {
271
continue; // skip as the normal scheduledCommands was modified and that command was canceled
272
}
0 commit comments