Skip to content

Commit

Permalink
Fix warning (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianReeves authored Sep 28, 2022
1 parent 77e4b28 commit 73f6b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zio-cli/shared/src/main/scala/zio/cli/Command.scala
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ object Command {
): IO[ValidationError, CommandDirective[(A, B)]] = {
val helpDirectiveForChild = {
val safeTail = args match {
case Nil => Nil
case head :: tail => tail
case Nil => Nil
case _ :: tail => tail
}
self.child
.parse(safeTail, conf)
Expand Down

0 comments on commit 73f6b43

Please sign in to comment.