Fix lint error
(cherry picked from commit 556f5a42a77fc355819919f91a9436902b25c789)
This commit is contained in:
parent
7e9199b3ef
commit
aaeac1b10c
@ -87,7 +87,10 @@ internal class ExtensionGithubApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun checkForUpdates(context: Context, fromAvailableExtensionList: Boolean = false): List<Extension.Installed>? {
|
suspend fun checkForUpdates(
|
||||||
|
context: Context,
|
||||||
|
fromAvailableExtensionList: Boolean = false,
|
||||||
|
): List<Extension.Installed>? {
|
||||||
// Limit checks to once a day at most
|
// Limit checks to once a day at most
|
||||||
if (!fromAvailableExtensionList &&
|
if (!fromAvailableExtensionList &&
|
||||||
Instant.now().toEpochMilli() < lastExtCheck.get() + 1.days.inWholeMilliseconds
|
Instant.now().toEpochMilli() < lastExtCheck.get() + 1.days.inWholeMilliseconds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user