* Safely remove a cache file (e.g. when it's corrupted). * Logs on failure but never throws.
(filepath: string)
| 111 | * Logs on failure but never throws. |
| 112 | */ |
| 113 | function removeCacheFile(filepath: string): void { |
| 114 | try { |
| 115 | unlinkSync(filepath); |
| 116 | } catch { |
| 117 | // Best-effort cleanup — not critical |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | // ============================================================================ |
| 122 | // Public API |