Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
fix: band-aid for "unreachable code"
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftzman7 committed Oct 9, 2024
1 parent 4a04f4e commit 81e41de
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/main/java/com/frcteam3636/frc2024/Robot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,14 @@ private fun doIntakeSequence(handoffTimeout: Double?): Command =
//note stowed
Commands.waitUntil(Trigger { !Shooter.Flywheels.aboveIntakeThreshold }),
Commands.runOnce({ Note.state = Note.State.SHOOTER })
).let {
if (handoffTimeout != null) {
return it.withTimeout(handoffTimeout)
} else {
return it
}
}
)
// .let {
// if (handoffTimeout != null) {
// return it.withTimeout(handoffTimeout)
// } else {
// return it
// }
// }
)
)

Expand Down

0 comments on commit 81e41de

Please sign in to comment.