( reason: AutoUpdaterDisabledReason, )
| 1818 | | { type: 'config' } |
| 1819 | |
| 1820 | export 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 | |
| 1833 | export function getAutoUpdaterDisabledReason(): AutoUpdaterDisabledReason | null { |
| 1834 | if (isDevelopmentLikeBuild()) { |
no outgoing calls
no test coverage detected