Skip to content

Commit ba58221

Browse files
committed
Match AK26 updates
1 parent 372ad10 commit ba58221

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

src/main/java/frc/robot/Robot.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.littletonrobotics.junction.networktables.NT4Publisher;
3030
import org.littletonrobotics.junction.wpilog.WPILOGReader;
3131
import org.littletonrobotics.junction.wpilog.WPILOGWriter;
32+
import org.littletonrobotics.urcl.URCL;
3233

3334
/**
3435
* The VM is configured to automatically run this class, and to call the functions corresponding to
@@ -55,17 +56,13 @@ public Robot() {
5556
Logger.recordMetadata("GitSHA", BuildConstants.GIT_SHA);
5657
Logger.recordMetadata("GitDate", BuildConstants.GIT_DATE);
5758
Logger.recordMetadata("GitBranch", BuildConstants.GIT_BRANCH);
58-
switch (BuildConstants.DIRTY) {
59-
case 0:
60-
Logger.recordMetadata("GitDirty", "All changes committed");
61-
break;
62-
case 1:
63-
Logger.recordMetadata("GitDirty", "Uncommitted changes");
64-
break;
65-
default:
66-
Logger.recordMetadata("GitDirty", "Unknown");
67-
break;
68-
}
59+
Logger.recordMetadata(
60+
"GitDirty",
61+
switch (BuildConstants.DIRTY) {
62+
case 0 -> "All changes committed";
63+
case 1 -> "Uncommitted changes";
64+
default -> "Unknown";
65+
});
6966

7067
// Set up data receivers & replay source
7168
switch (Constants.getMode()) {

0 commit comments

Comments
 (0)