( reason: AutoUpdaterDisabledReason, )
| 1720 | | { type: 'config' } |
| 1721 | |
| 1722 | export 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 | |
| 1735 | export function getAutoUpdaterDisabledReason(): AutoUpdaterDisabledReason | null { |
| 1736 | if (process.env.NODE_ENV === 'development') { |
no outgoing calls
no test coverage detected