()
| 137 | } |
| 138 | |
| 139 | function readState() { |
| 140 | try { |
| 141 | const p = getStatePath(); |
| 142 | if (fs.existsSync(p)) { |
| 143 | return JSON.parse(fs.readFileSync(p, 'utf8')); |
| 144 | } |
| 145 | } catch (_) {} |
| 146 | return { lastPRAt: null, recentDiffHashes: [] }; |
| 147 | } |
| 148 | |
| 149 | function writeState(state) { |
| 150 | try { |
no test coverage detected