Synchronous read from cache — never fetches.
()
| 20 | |
| 21 | /** Synchronous read from cache — never fetches. */ |
| 22 | function getSkillsUpdateMeta(): SkillsUpdateMeta { |
| 23 | const config = readConfig(); |
| 24 | return { |
| 25 | updateAvailable: config.skillsUpdateAvailable ?? false, |
| 26 | outdated: config.skillsOutdatedCount ?? 0, |
| 27 | missing: config.skillsMissingCount ?? 0, |
| 28 | }; |
| 29 | } |
| 30 | |
| 31 | function cacheFresh(lastSkillsCheck: string | undefined, now: number): boolean { |
| 32 | if (!lastSkillsCheck) return false; |
no test coverage detected