Fix mirror domain switching

This commit is contained in:
vianh
2024-02-15 22:36:16 +07:00
committed by Koitharu
parent b4bd923ce8
commit 6c0e2e2b90

View File

@@ -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
}