MCPcopy Create free account
hub / github.com/codeaashu/claude-code / formatAutoUpdaterDisabledReason

Function formatAutoUpdaterDisabledReason

src/utils/config.ts:1722–1733  ·  view source on GitHub ↗
(
  reason: AutoUpdaterDisabledReason,
)

Source from the content-addressed store, hash-verified

1720 | { type: 'config' }
1721
1722export function formatAutoUpdaterDisabledReason(
1723 reason: AutoUpdaterDisabledReason,
1724): string {
1725 switch (reason.type) {
1726 case 'development':
1727 return 'development build'
1728 case 'env':
1729 return `${reason.envVar} set`
1730 case 'config':
1731 return 'config'
1732 }
1733}
1734
1735export function getAutoUpdaterDisabledReason(): AutoUpdaterDisabledReason | null {
1736 if (process.env.NODE_ENV === 'development') {

Callers 2

ConfigFunction · 0.85
getDoctorDiagnosticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected