Skip to content

Commit 5e40cff

Browse files
committed
Made code more readable.
1 parent f6a10c3 commit 5e40cff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

libs/SalesforceSDK/src/com/salesforce/androidsdk/push/PushService.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,9 @@ open class PushService {
395395
)
396396

397397
// Adds community ID to the registration payload to allow scoping of notifications per community.
398-
account.communityUrl?.takeUnless { it.isBlank() }?.let {
399-
fields[NETWORK_ID] = it
398+
val communityUrl = account.communityUrl
399+
if (!communityUrl.isNullOrBlank()) {
400+
fields[NETWORK_ID] = communityUrl
400401
}
401402

402403
// Adds an RSA public key to the registration payload if available.

0 commit comments

Comments
 (0)