Skip to content

Commit 900bf00

Browse files
committed
Update formatting to address linting errors
1 parent 2320ee5 commit 900bf00

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

OneSignalSDK/onesignal/notifications/src/main/java/com/onesignal/notifications/receivers/BootUpReceiver.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ class BootUpReceiver : BroadcastReceiver() {
3838
intent: Intent,
3939
) {
4040
// Return early if the action does not match expected action
41-
if (intent.action != Intent.ACTION_BOOT_COMPLETED)
42-
{
43-
return
44-
}
41+
if (intent.action != Intent.ACTION_BOOT_COMPLETED) {
42+
return
43+
}
4544
if (!OneSignal.initWithContext(context)) {
4645
return
4746
}

OneSignalSDK/onesignal/notifications/src/main/java/com/onesignal/notifications/receivers/UpgradeReceiver.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
*/
2727
package com.onesignal.notifications.receivers
2828

29-
import android.app.Notification.Action
3029
import android.content.BroadcastReceiver
3130
import android.content.Context
3231
import android.content.Intent
@@ -43,10 +42,9 @@ class UpgradeReceiver : BroadcastReceiver() {
4342
// testing and look at the issue but maybe someone has a answer or rems what directly
4443
// was causing this issue
4544
// Return early if the action does not match expected action
46-
if (intent.action != Intent.ACTION_MY_PACKAGE_REPLACED)
47-
{
48-
return
49-
}
45+
if (intent.action != Intent.ACTION_MY_PACKAGE_REPLACED) {
46+
return
47+
}
5048
// Return early if using Android 7.0 due to upgrade restore crash (#263)
5149
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.N) {
5250
return

0 commit comments

Comments
 (0)