Fix compiler warning about match order
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user