Skip to content

Commit eb4c302

Browse files
committed
fix prettier
1 parent 79eabaa commit eb4c302

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

packages/preload/src/modules/fs.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ export async function readFile(path: string) {
1212
return fs.readFile(path);
1313
}
1414

15-
export async function writeFile(scenePath: string, content: WriteFileData, options?: WriteFileOptions) {
15+
export async function writeFile(
16+
scenePath: string,
17+
content: WriteFileData,
18+
options?: WriteFileOptions,
19+
) {
1620
await fs.mkdir(path.dirname(scenePath), { recursive: true });
1721
await fs.writeFile(scenePath, content, options);
1822
}

packages/preload/src/modules/scene.ts

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export function pathToPosix(value: string): string {
3636
return value.replace(/\\/g, '/');
3737
}
3838

39-
4039
/**
4140
* Updates the scene metadata to reference the new thumbnail path.
4241
*

packages/preload/src/modules/workspace.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ export async function saveThumbnail({
369369
}): Promise<void> {
370370
const scene = await getScene(scenePath);
371371
const thumbnailPath = getProjectThumbnailPath();
372-
await deepWriteFile(path.join(scenePath, thumbnailPath), thumbnailContent, { encoding: 'base64' });
372+
await deepWriteFile(path.join(scenePath, thumbnailPath), thumbnailContent, {
373+
encoding: 'base64',
374+
});
373375

374376
// Check if the current thumbnail file exists
375377
// If the current thumbnail doesn't exist, update the scene.json to point to the new thumbnail

0 commit comments

Comments
 (0)