Commit e0ad3c4
authored
robustness improvement: rewind file before writing empty JSON skeleton
prevents creating corrupted JSON
if the previous file content was ``{}``, the result would be ``{"0":{}}`` if the file position is not reset first.1 parent 72b1f59 commit e0ad3c4
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| |||
0 commit comments