Fix unnecessary null check
This commit is contained in:
parent
06f5f18b65
commit
8129a9deb5
|
@ -123,7 +123,7 @@ class AppAction(private val type: Type, private val argv: Map<String, Any>? = nu
|
||||||
|
|
||||||
private fun deleteRegistration(context: Context, argv: Map<String, Any>?) {
|
private fun deleteRegistration(context: Context, argv: Map<String, Any>?) {
|
||||||
val registrations = argv?.get(ARG_REGISTRATIONS) as List<String>? ?: return
|
val registrations = argv?.get(ARG_REGISTRATIONS) as List<String>? ?: return
|
||||||
registrations?.forEach {
|
registrations.forEach {
|
||||||
deleteApp(context, it) {}
|
deleteApp(context, it) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue