Skip to content

Commit 6df670e

Browse files
committed
fix linting
1 parent 45956d8 commit 6df670e

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user/internal/backend/ISubscriptionBackendService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ interface ISubscriptionBackendService {
5252
subscriptionToken: String,
5353
jwt: String? = null,
5454
)
55-
55+
5656
/**
5757
* Transfer an existing subscription to the user specified.
5858
*

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user/internal/operations/DeleteSubscriptionOperation.kt

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.onesignal.user.internal.operations
33
import com.onesignal.common.IDManager
44
import com.onesignal.core.internal.operations.GroupComparisonType
55
import com.onesignal.core.internal.operations.Operation
6-
import com.onesignal.user.internal.backend.SubscriptionObject
76
import com.onesignal.user.internal.operations.impl.executors.SubscriptionOperationExecutor
87
import com.onesignal.user.internal.subscriptions.SubscriptionType
98

@@ -35,10 +34,10 @@ class DeleteSubscriptionOperation() : Operation(SubscriptionOperationExecutor.DE
3534
* and can be checked via [IDManager.isLocalId] to ensure correct processing.
3635
*/
3736
var subscriptionId: String
38-
get() = getStringProperty(::subscriptionId.name)
39-
private set(value) {
40-
setStringProperty(::subscriptionId.name, value)
41-
}
37+
get() = getStringProperty(::subscriptionId.name)
38+
private set(value) {
39+
setStringProperty(::subscriptionId.name, value)
40+
}
4241

4342
/**
4443
* The type of subscription.
@@ -57,18 +56,29 @@ class DeleteSubscriptionOperation() : Operation(SubscriptionOperationExecutor.DE
5756
* * [SubscriptionType.SMS]: A phone number in E.164 format.
5857
*/
5958
var address: String
60-
get() = getStringProperty(::address.name)
61-
private set(value) {
62-
setStringProperty(::address.name, value)
63-
}
59+
get() = getStringProperty(::address.name)
60+
private set(value) {
61+
setStringProperty(::address.name, value)
62+
}
6463

6564
override val createComparisonKey: String get() = "$appId.User.$onesignalId"
6665
override val modifyComparisonKey: String get() = "$appId.User.$onesignalId.Subscription.$subscriptionId"
6766
override val groupComparisonType: GroupComparisonType = GroupComparisonType.NONE
68-
override val canStartExecute: Boolean get() = !IDManager.isLocalId(onesignalId) && !IDManager.isLocalId(subscriptionId)
67+
override val canStartExecute: Boolean
68+
get() =
69+
!IDManager.isLocalId(onesignalId) &&
70+
!IDManager.isLocalId(
71+
subscriptionId,
72+
)
6973
override val applyToRecordId: String get() = subscriptionId
7074

71-
constructor(appId: String, onesignalId: String, subscriptionId: String, type: SubscriptionType, address: String) : this() {
75+
constructor(
76+
appId: String,
77+
onesignalId: String,
78+
subscriptionId: String,
79+
type: SubscriptionType,
80+
address: String,
81+
) : this() {
7282
this.appId = appId
7383
this.onesignalId = onesignalId
7484
this.subscriptionId = subscriptionId

0 commit comments

Comments
 (0)