Supress false-positive Lint issue

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-03-10 09:45:18 +05:30
parent d5e51366e9
commit c048ecf9cf
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -30,6 +30,8 @@ class LobstersRepository constructor(
return@withContext lobstersApi.getHottestPosts(page) return@withContext lobstersApi.getHottestPosts(page)
} }
// https://issuetracker.google.com/issues/181221325
@Suppress("NewApi")
suspend fun updateCache() { suspend fun updateCache() {
if (_isCacheReady.value) return if (_isCacheReady.value) return
val posts = getSavedPosts() val posts = getSavedPosts()