Skip to content

Commit ebf9aef

Browse files
committed
Fixed comments
1 parent 90b5bb3 commit ebf9aef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pubnub-kotlin/pubnub-kotlin-impl/src/integrationTest/kotlin/com/pubnub/api/integration/PresenceIntegrationTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ class PresenceIntegrationTests : BaseIntegrationTest() {
821821
}
822822

823823
@Test
824-
fun testHereNowWithLimitAbove1000andBelow0() {
824+
fun testHereNowWithLimitAbove1000() {
825825
val limitAboveMax = 2000
826826
val totalClientsCount = 5
827827
val expectedChannel = randomChannel()

pubnub-kotlin/pubnub-kotlin-impl/src/main/kotlin/com/pubnub/internal/endpoints/presence/HereNowEndpoint.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class HereNowEndpoint internal constructor(
9292
when {
9393
input.uuids != null -> prepareOccupantData(input.uuids)
9494
limit == 0 -> emptyList() // Server omits uuids field when limit=0
95-
else -> prepareOccupantData(input.uuids!!) // Should be present, NPE if malformed response
95+
else -> prepareOccupantData(input.uuids!!)
9696
}
9797
} else {
9898
emptyList()
@@ -125,7 +125,7 @@ class HereNowEndpoint internal constructor(
125125
when {
126126
uuidsField != null -> prepareOccupantData(uuidsField)
127127
limit == 0 -> emptyList() // Server omits uuids field when limit=0
128-
else -> prepareOccupantData(uuidsField!!) // Should be present, NPE if malformed response
128+
else -> prepareOccupantData(uuidsField!!)
129129
}
130130
} else {
131131
emptyList()

0 commit comments

Comments
 (0)