()
| 36 | |
| 37 | /** Returns the current state from memory; loads on first call. */ |
| 38 | export const getCurrentState = async (): Promise<UpdateState> => { |
| 39 | if (inMemoryState) return inMemoryState; |
| 40 | inMemoryState = await loadState(stateFilePath()); |
| 41 | return inMemoryState; |
| 42 | }; |
| 43 | |
| 44 | export const getDetectedInstallMethod = () => detectedMethod; |
| 45 |
no test coverage detected