Skip to content

Commit 3d548e0

Browse files
authored
Fix computeIfAbsent usage
1 parent 8dd73bf commit 3d548e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public boolean isConnected() {
331331
* @return a Trigger instance that is true when the HID is connected.
332332
*/
333333
public Trigger connected(EventLoop loop) {
334-
return m_isConnectedCache.computeIfAbsent(k -> new Trigger(loop, this::isConnected));
334+
return m_isConnectedCache.computeIfAbsent(loop, k -> new Trigger(loop, this::isConnected));
335335
}
336336

337337
/**

0 commit comments

Comments
 (0)