mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -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>
|
val latestKobaltVersion: Future<String>
|
||||||
get() {
|
get() {
|
||||||
val callable = Callable<String> {
|
val callable = Callable<String> {
|
||||||
var result = "0"
|
var result = Kobalt.version
|
||||||
if (Duration.ofMinutes(10L) >
|
if (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.")
|
||||||
result = Kobalt.version
|
|
||||||
} else {
|
} else {
|
||||||
val username = localProperties.getNoThrows(PROPERTY_USERNAME, DOC_URL)
|
val username = localProperties.getNoThrows(PROPERTY_USERNAME, DOC_URL)
|
||||||
val accessToken = localProperties.getNoThrows(PROPERTY_ACCESS_TOKEN, DOC_URL)
|
val accessToken = localProperties.getNoThrows(PROPERTY_ACCESS_TOKEN, DOC_URL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue