Small cleanup

This commit is contained in:
Benoit Marty 2022-06-01 16:14:36 +02:00 committed by Benoit Marty
parent 399e95a247
commit ddf6a69a69

View File

@ -144,8 +144,7 @@ class UnifiedPushHelper @Inject constructor(
}
)
if (distributors.size == 1 &&
!force) {
if (distributors.size == 1 && !force) {
up.saveDistributor(context, distributors.first())
up.registerApp(context)
onDoneRunnable?.run()
@ -160,7 +159,7 @@ class UnifiedPushHelper @Inject constructor(
context.packageManager.getApplicationLabel(ai)
} catch (e: PackageManager.NameNotFoundException) {
it
} as String
}
}
}.toTypedArray()