empty character literal is a digit somehow

This commit is contained in:
Fate-JH 2024-03-26 19:33:44 -04:00
parent ad2e535893
commit 197c37315e

View file

@ -355,9 +355,7 @@ object ChatActor {
@unused session: Session,
token: Option[String]
): Option[Int] = {
token.collect {
case n if n.forall(Character.isDigit) => n.toInt
}
token.flatMap(_.toIntOption)
}