Skip to content

Commit 2392c9f

Browse files
authored
Run java format (wpilibsuite#6462)
1 parent 0dbdbb2 commit 2392c9f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/button/CommandGenericHID.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ public Trigger button(int button) {
5959
*/
6060
public Trigger button(int button, EventLoop loop) {
6161
var cache = m_buttonCache.computeIfAbsent(loop, k -> new HashMap<>());
62-
return cache.computeIfAbsent(button, k ->
63-
new Trigger(loop, () -> m_hid.getRawButton(k)));
62+
return cache.computeIfAbsent(button, k -> new Trigger(loop, () -> m_hid.getRawButton(k)));
6463
}
6564

6665
/**
@@ -93,8 +92,8 @@ public Trigger pov(int angle) {
9392
public Trigger pov(int pov, int angle, EventLoop loop) {
9493
var cache = m_povCache.computeIfAbsent(loop, k -> new HashMap<>());
9594
// angle can be -1, so use 3600 instead of 360
96-
return cache.computeIfAbsent(pov * 3600 + angle, k ->
97-
new Trigger(loop, () -> m_hid.getPOV(pov) == angle));
95+
return cache.computeIfAbsent(
96+
pov * 3600 + angle, k -> new Trigger(loop, () -> m_hid.getPOV(pov) == angle));
9897
}
9998

10099
/**

0 commit comments

Comments
 (0)