Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 21, 2024
1 parent fa391a6 commit a756ff5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public static synchronized CommandScheduler getInstance() {
private final List<BiConsumer<Command, Optional<Command>>> m_interruptActions = new ArrayList<>();
private final List<Consumer<Command>> m_finishActions = new ArrayList<>();


private final Watchdog m_watchdog = new Watchdog(TimedRobot.kDefaultPeriod, () -> {});

CommandScheduler() {
Expand Down Expand Up @@ -265,7 +264,8 @@ public void run() {

boolean isDisabled = RobotState.isDisabled();
// Run scheduled commands, remove finished commands.
for (Iterator<Command> iterator = Set.copyOf(m_scheduledCommands).iterator(); iterator.hasNext(); ) {
for (Iterator<Command> iterator = Set.copyOf(m_scheduledCommands).iterator();
iterator.hasNext(); ) {
Command command = iterator.next();
if (!isScheduled(command)) {
continue; // skip as the normal scheduledCommands was modified and that command was canceled
Expand Down

0 comments on commit a756ff5

Please sign in to comment.