Skip to content

Commit 72f30dd

Browse files
ascorbicastrobot-houston
authored andcommitted
[ci] format
1 parent 029661d commit 72f30dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/astro/src/content/mutable-data-store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export default new Map([\n${lines.join(',\n')}]);
196196
#pending = new Set<string>();
197197

198198
async #writeFileAtomic(filePath: PathLike, data: string, depth = 0) {
199-
if(depth > MAX_DEPTH) {
199+
if (depth > MAX_DEPTH) {
200200
// If we hit the max depth, we skip a write to prevent the stack from growing too large
201201
// In theory this means we may miss the latest data, but in practice this will only happen when the file is being written to very frequently
202202
// so it will be saved on the next write. This is unlikely to ever happen in practice, as the writes are debounced. It requires lots of writes to very large files.
@@ -213,7 +213,7 @@ export default new Map([\n${lines.join(',\n')}]);
213213

214214
const tempFile = filePath instanceof URL ? new URL(`${filePath.href}.tmp`) : `${filePath}.tmp`;
215215
try {
216-
// Write it to a temporary file first and then move it to prevent partial reads.
216+
// Write it to a temporary file first and then move it to prevent partial reads.
217217
await fs.writeFile(tempFile, data);
218218
await fs.rename(tempFile, filePath);
219219
} finally {

0 commit comments

Comments
 (0)