1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 08:38:13 -07:00

Comments.

This commit is contained in:
Cedric Beust 2016-01-31 08:24:50 -08:00
parent f21efb6510
commit f4f5e8c05e
3 changed files with 20 additions and 15 deletions

View file

@ -30,8 +30,8 @@ public class UpdateKobalt @Inject constructor(val github: GithubApi, val wrapper
}
/**
* Accepts Future<String> as `latestVersionFuture` to allow getting `latestVersion` in the background
* */
* Accepts Future<String> as `latestVersionFuture` to allow getting `latestVersion` in the background.
*/
fun checkForNewVersion(latestVersionFuture: Future<String>) {
if (Kobalt.versionCheckTimeout > Duration.between(VersionCheckTimestampFile.timestamp, Instant.now())) {
return // waits `Kobalt.versionCheckTimeout` before the next check