Failures are swallowed — the update-check feature must never fail the CLI.
(cache: UpdateCheckCache)
| 103 | |
| 104 | /** Failures are swallowed — the update-check feature must never fail the CLI. */ |
| 105 | writeUpdateCheck(cache: UpdateCheckCache): void { |
| 106 | try { |
| 107 | this.patch({ updateCheck: cache }); |
| 108 | } catch { |
| 109 | // non-critical |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | export const State = new StateStore(); |
no test coverage detected