system: indent cache file

This commit is contained in:
Girish Ramakrishnan
2024-11-30 11:11:54 +01:00
parent 742a04d149
commit f219abf082
+1 -1
View File
@@ -261,7 +261,7 @@ async function updateDiskUsage(progressCallback) {
}
}
if (!safe.fs.writeFileSync(paths.DISK_USAGE_FILE, JSON.stringify({ ts: now, disks }), 'utf8')) throw new BoxError(BoxError.FS_ERROR, `Could not write du cache file: ${safe.error.message}`);
if (!safe.fs.writeFileSync(paths.DISK_USAGE_FILE, JSON.stringify({ ts: now, disks }, null, 4), 'utf8')) throw new BoxError(BoxError.FS_ERROR, `Could not write du cache file: ${safe.error.message}`);
return disks;
}