Fix mirror domain switching

master
vianh 2 years ago committed by Koitharu
parent b4bd923ce8
commit 6c0e2e2b90

@ -227,6 +227,5 @@ class RemoteMangaRepository(
}
}
private fun Result<*>.isValidResult() = exceptionOrNull() !is ParseException
&& (getOrNull() as? Collection<*>)?.isEmpty() != true
private fun Result<*>.isValidResult() = isSuccess && (getOrNull() as? Collection<*>)?.isEmpty() != true
}

Loading…
Cancel
Save