()
| 4 | this.adapter = new TextFile(filename); |
| 5 | } |
| 6 | async read() { |
| 7 | const data = await this.adapter.read(); |
| 8 | if (data === null) { |
| 9 | return null; |
| 10 | } |
| 11 | else { |
| 12 | return JSON.parse(data); |
| 13 | } |
| 14 | } |
| 15 | write(obj) { |
| 16 | return this.adapter.write(JSON.stringify(obj, null, 2)); |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected