Skip to content

Commit ee66b70

Browse files
Formatting fixes
1 parent 587afe4 commit ee66b70

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,21 +323,20 @@ public boolean isConnected() {
323323
return m_hid.isConnected();
324324
}
325325

326-
327326
/**
328327
* Constructs a Trigger instance that is true when the HID is connected, attached to then loop.
328+
*
329329
* @param loop the event loop instance to attach the Trigger to.
330330
* @return a Trigger instance that is true when the HID is connected.
331331
*/
332332
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));
336334
}
337335

338336
/**
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+
*
341340
* @return a Trigger instance that is true when the HID is connected.
342341
*/
343342
public Trigger connected() {

0 commit comments

Comments
 (0)