This commit is contained in:
Aditya Wasan 2021-02-10 18:44:04 +05:30 committed by Harsh Shandilya
parent 98866ee407
commit 1a6174b1c8
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -20,7 +20,7 @@ enum class Destination(
val startDestination = Hottest val startDestination = Hottest
fun getDestinationFromRoute(route: String): Destination { fun getDestinationFromRoute(route: String): Destination {
return values().firstOrNull { it.route == route } ?: error("Incorrect route password") return values().firstOrNull { it.route == route } ?: error("Incorrect route passed")
} }
} }
} }