MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatAutoUpdaterDisabledReason

Function formatAutoUpdaterDisabledReason

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

Source from the content-addressed store, hash-verified

1818 | { type: 'config' }
1819
1820export function formatAutoUpdaterDisabledReason(
1821 reason: AutoUpdaterDisabledReason,
1822): string {
1823 switch (reason.type) {
1824 case 'development':
1825 return 'development build'
1826 case 'env':
1827 return `${reason.envVar} set`
1828 case 'config':
1829 return 'config'
1830 }
1831}
1832
1833export function getAutoUpdaterDisabledReason(): AutoUpdaterDisabledReason | null {
1834 if (isDevelopmentLikeBuild()) {

Callers 2

ConfigFunction · 0.85
getDoctorDiagnosticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected