From 8129a9deb5f89b6896588fbe9941afcd47b3c187 Mon Sep 17 00:00:00 2001 From: sim Date: Mon, 18 Nov 2024 10:28:15 +0000 Subject: [PATCH] Fix unnecessary null check --- .../unifiedpush/distributor/nextpush/activities/AppAction.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/AppAction.kt b/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/AppAction.kt index 5536b73..e52797a 100644 --- a/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/AppAction.kt +++ b/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/AppAction.kt @@ -123,7 +123,7 @@ class AppAction(private val type: Type, private val argv: Map? = nu private fun deleteRegistration(context: Context, argv: Map?) { val registrations = argv?.get(ARG_REGISTRATIONS) as List? ?: return - registrations?.forEach { + registrations.forEach { deleteApp(context, it) {} } }