Skip to content

Commit

Permalink
Run java format (wpilibsuite#6462)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Mar 22, 2024
1 parent 0dbdbb2 commit 2392c9f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public Trigger button(int button) {
*/
public Trigger button(int button, EventLoop loop) {
var cache = m_buttonCache.computeIfAbsent(loop, k -> new HashMap<>());
return cache.computeIfAbsent(button, k ->
new Trigger(loop, () -> m_hid.getRawButton(k)));
return cache.computeIfAbsent(button, k -> new Trigger(loop, () -> m_hid.getRawButton(k)));
}

/**
Expand Down Expand Up @@ -93,8 +92,8 @@ public Trigger pov(int angle) {
public Trigger pov(int pov, int angle, EventLoop loop) {
var cache = m_povCache.computeIfAbsent(loop, k -> new HashMap<>());
// angle can be -1, so use 3600 instead of 360
return cache.computeIfAbsent(pov * 3600 + angle, k ->
new Trigger(loop, () -> m_hid.getPOV(pov) == angle));
return cache.computeIfAbsent(
pov * 3600 + angle, k -> new Trigger(loop, () -> m_hid.getPOV(pov) == angle));
}

/**
Expand Down

0 comments on commit 2392c9f

Please sign in to comment.