mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
empty character literal is a digit somehow
This commit is contained in:
parent
ad2e535893
commit
197c37315e
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue