Skip to content

Commit

Permalink
fix: Vararg param
Browse files Browse the repository at this point in the history
  • Loading branch information
kennarddh committed Apr 24, 2024
1 parent a2a080d commit 3dcb17c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ class CommandRegistry {
return@async
}

val tokenString = if (parameter.isVararg)
val tokenString = if (parameter.isVararg && token.toBeParsed.isNotEmpty())
"${token.value} ${token.toBeParsed}"
else
token.value
Expand Down

0 comments on commit 3dcb17c

Please sign in to comment.