Fix lint error
This commit is contained in:
parent
850813820c
commit
556f5a42a7
1 changed files with 4 additions and 1 deletions
|
@ -86,7 +86,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
|
||||||
|
|
Reference in a new issue