1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Forgot a change.

This commit is contained in:
Cedric Beust 2017-04-01 06:30:03 -07:00
parent b3ce6db1da
commit 53924366ba

View file

@ -1,5 +1,6 @@
package com.beust.kobalt.misc package com.beust.kobalt.misc
import com.beust.kobalt.Args
import com.beust.kobalt.KobaltException import com.beust.kobalt.KobaltException
import com.beust.kobalt.api.Kobalt import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.internal.DocUrl import com.beust.kobalt.internal.DocUrl
@ -115,7 +116,7 @@ class GithubApi2 @Inject constructor(
get() { get() {
val callable = Callable<String> { val callable = Callable<String> {
var result = Kobalt.version var result = Kobalt.version
if (! args.isDev && Duration.ofMinutes(10L) > if (! args.dev && Duration.ofMinutes(10L) >
Duration.between(VersionCheckTimestampFile.timestamp, Instant.now())) { Duration.between(VersionCheckTimestampFile.timestamp, Instant.now())) {
kobaltLog(2, "Skipping GitHub latest release check, too soon.") kobaltLog(2, "Skipping GitHub latest release check, too soon.")
} else { } else {