File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/button Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ public Trigger button(int button) {
59
59
*/
60
60
public Trigger button (int button , EventLoop loop ) {
61
61
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 )));
64
63
}
65
64
66
65
/**
@@ -93,8 +92,8 @@ public Trigger pov(int angle) {
93
92
public Trigger pov (int pov , int angle , EventLoop loop ) {
94
93
var cache = m_povCache .computeIfAbsent (loop , k -> new HashMap <>());
95
94
// 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 ));
98
97
}
99
98
100
99
/**
You can’t perform that action at this time.
0 commit comments