mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 16:07:12 -07:00
Latest version check now defaults to current version.
This commit is contained in:
parent
0c8a7991de
commit
af9289ad7f
1 changed files with 1 additions and 2 deletions
|
@ -113,11 +113,10 @@ class GithubApi2 @Inject constructor(
|
|||
val latestKobaltVersion: Future<String>
|
||||
get() {
|
||||
val callable = Callable<String> {
|
||||
var result = "0"
|
||||
var result = Kobalt.version
|
||||
if (Duration.ofMinutes(10L) >
|
||||
Duration.between(VersionCheckTimestampFile.timestamp, Instant.now())) {
|
||||
kobaltLog(2, "Skipping GitHub latest release check, too soon.")
|
||||
result = Kobalt.version
|
||||
} else {
|
||||
val username = localProperties.getNoThrows(PROPERTY_USERNAME, DOC_URL)
|
||||
val accessToken = localProperties.getNoThrows(PROPERTY_ACCESS_TOKEN, DOC_URL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue