(stateFile?: string)
| 64 | |
| 65 | // Writes always target the XDG path; migrate the legacy file first if present. |
| 66 | async function writeStateFilePath(stateFile?: string): Promise<string> { |
| 67 | const path = getStateFilePath(stateFile); |
| 68 | if (!stateFile) { |
| 69 | await migrateLegacyFile(UPDATE_STATE_FILE_NAME, path); |
| 70 | } |
| 71 | return path; |
| 72 | } |
| 73 | |
| 74 | async function readUpdateState(stateFile?: string): Promise<UpdateState> { |
| 75 | try { |
no test coverage detected