Skip to content

Commit 1bde950

Browse files
committed
timeout >= 0.0, not 0
1 parent e742f4d commit 1bde950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/usfirst/frc/team69/util/CommandBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public CommandBuilder sequential(Command command) {
6969
* @return This CommandBuilder object
7070
*/
7171
public CommandBuilder sequential(Command command, double timeout) {
72-
if(timeout >= 0) {
72+
if(timeout >= 0.0) {
7373
m_cmdGroup.addSequential(command, timeout);
7474
} else {
7575
m_cmdGroup.addSequential(command);
@@ -109,7 +109,7 @@ public CommandBuilder parallel(Command command) {
109109
* @return This CommandBuilder object
110110
*/
111111
public CommandBuilder parallel(Command command, double timeout) {
112-
if(timeout >= 0) {
112+
if(timeout >= 0.0) {
113113
m_cmdGroup.addParallel(command, timeout);
114114
} else {
115115
m_cmdGroup.addParallel(command);

0 commit comments

Comments
 (0)