()
| 58 | } |
| 59 | |
| 60 | function readState() { |
| 61 | try { |
| 62 | const p = getStatePath(); |
| 63 | if (fs.existsSync(p)) { |
| 64 | return JSON.parse(fs.readFileSync(p, 'utf8')); |
| 65 | } |
| 66 | } catch (_) {} |
| 67 | return { lastReportedAt: null, recentIssueKeys: [] }; |
| 68 | } |
| 69 | |
| 70 | function writeState(state) { |
| 71 | try { |
no test coverage detected