File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/button Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -323,21 +323,20 @@ public boolean isConnected() {
323
323
return m_hid .isConnected ();
324
324
}
325
325
326
-
327
326
/**
328
327
* Constructs a Trigger instance that is true when the HID is connected, attached to then loop.
328
+ *
329
329
* @param loop the event loop instance to attach the Trigger to.
330
330
* @return a Trigger instance that is true when the HID is connected.
331
331
*/
332
332
public Trigger connected (EventLoop loop ) {
333
- return m_isConnectedCache .computeIfAbsent (
334
- k -> new Trigger (loop , this ::isConnected )
335
- );
333
+ return m_isConnectedCache .computeIfAbsent (k -> new Trigger (loop , this ::isConnected ));
336
334
}
337
335
338
336
/**
339
- * Constructs a Trigger instance that is true when the HID is connected, attached to
340
- * {@link CommandScheduler#getDefaultButtonLoop() the default command scheduler button loop}.
337
+ * Constructs a Trigger instance that is true when the HID is connected, attached to {@link
338
+ * CommandScheduler#getDefaultButtonLoop() the default command scheduler button loop}.
339
+ *
341
340
* @return a Trigger instance that is true when the HID is connected.
342
341
*/
343
342
public Trigger connected () {
You can’t perform that action at this time.
0 commit comments