MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / updateCheckDisabled

Function updateCheckDisabled

src/upgrade/update-check.ts:89–91  ·  view source on GitHub ↗
(env: NodeJS.ProcessEnv = process.env)

Source from the content-addressed store, hash-verified

87 * notice. `DO_NOT_TRACK` uses the same truthiness the telemetry opt-out does.
88 */
89export function updateCheckDisabled(env: NodeJS.ProcessEnv = process.env): boolean {
90 return envTruthy(env.CODEGRAPH_NO_UPDATE_CHECK) || envTruthy(env.DO_NOT_TRACK);
91}
92
93export function updateCheckCachePath(dir: string): string {
94 return path.join(dir, 'update-check.json');

Callers 3

refreshUpdateCheckFunction · 0.85
getUpdateNoticeFunction · 0.85

Calls 1

envTruthyFunction · 0.85

Tested by

no test coverage detected