Fix compiler warning about match order

This commit is contained in:
Guntis Smaukstelis
2023-05-22 22:31:28 +03:00
parent 18f6424397
commit f60ddd27af
+1 -1
View File
@@ -29,8 +29,8 @@ object ValidateRoutes {
object CityList {
def unapply(str: String): Option[List[String]] = {
str.split(",").toList match {
case list => Some(list)
case Nil => None
case list => Some(list)
}
}
}