()
| 6 | |
| 7 | // Load data from the JSON file |
| 8 | function loadStickcmdData() { |
| 9 | try { |
| 10 | const data = fs.readFileSync(filePath, 'utf8'); |
| 11 | return JSON.parse(data); |
| 12 | } catch (err) { |
| 13 | return {}; // Return an empty object if the file doesn't exist or there's an error |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | // Save data to the JSON file |
| 18 | function saveStickcmdData(data) { |
no outgoing calls
no test coverage detected