()
| 20 | } |
| 21 | |
| 22 | function readSettings() { |
| 23 | try { |
| 24 | const file = getSettingsFile(); |
| 25 | if (fs.existsSync(file)) { |
| 26 | return JSON.parse(fs.readFileSync(file, 'utf8')); |
| 27 | } |
| 28 | } catch {} |
| 29 | return {}; |
| 30 | } |
| 31 | |
| 32 | function writeSettings(data) { |
| 33 | const dir = getSettingsDir(); |
no test coverage detected