MCPcopy
hub / github.com/foambubble/foam / writeUpdateCheck

Method writeUpdateCheck

packages/foam-cli/src/support/state.ts:105–111  ·  view source on GitHub ↗

Failures are swallowed — the update-check feature must never fail the CLI.

(cache: UpdateCheckCache)

Source from the content-addressed store, hash-verified

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
114export const State = new StateStore();

Callers 2

version.test.tsFile · 0.80
checkForUpdateNoticeFunction · 0.80

Calls 1

patchMethod · 0.95

Tested by

no test coverage detected