()
| 45 | } |
| 46 | |
| 47 | function readCache() { |
| 48 | try { |
| 49 | if (!fs.existsSync(TOKEN_CACHE_FILE)) return {}; |
| 50 | return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")); |
| 51 | } catch (e) { |
| 52 | return {}; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | function writeCache(cache) { |
| 57 | try { |
no outgoing calls
no test coverage detected