Add missed return

Change-Id: I0a01f3eb7ab8ffef965736c6aa0e03909914358c
This commit is contained in:
SpiritCroc 2022-05-13 12:58:54 +02:00
parent 07288c5458
commit 200370912a

View file

@ -73,7 +73,7 @@ internal class TokenChunkEventPersistor @Inject constructor(
if (receivedChunk.events.isEmpty() && receivedChunk.start == receivedChunk.end) {
Timber.w("Discard empty chunk with identical start/end token ${receivedChunk.start}")
if (receivedChunk.hasMore()) {
return if (receivedChunk.hasMore()) {
Result.SHOULD_FETCH_MORE
} else {
Result.REACHED_END