forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -74,7 +74,8 @@ data class CacheConfig(val lastUpdate: MutableMap<String, Long>) {
|
||||
fun isOutdated(uuid: String): Boolean {
|
||||
return config.lastUpdate[uuid]?.let {
|
||||
it < Instant.now().minus(1, ChronoUnit.DAYS).toEpochMilli()
|
||||
} ?: true
|
||||
}
|
||||
?: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user