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:
parent
b3ce6db1da
commit
53924366ba
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue