mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-20 04:57:38 -04:00
lint: formatting
This commit is contained in:
parent
b8cb7ed8dc
commit
6b47611d4b
|
@ -1,6 +1,6 @@
|
|||
import { open } from '@tauri-apps/api/dialog';
|
||||
import { createDir, readTextFile, writeFile } from '@tauri-apps/api/fs';
|
||||
import { dirname, join, logDir } from '@tauri-apps/api/path';
|
||||
import { open } from "@tauri-apps/api/dialog";
|
||||
import { createDir, readTextFile, writeFile } from "@tauri-apps/api/fs";
|
||||
import { dirname, join, logDir } from "@tauri-apps/api/path";
|
||||
|
||||
export async function fileExists(path) {
|
||||
try {
|
||||
|
@ -30,12 +30,12 @@ export async function clearInstallLogs(supportedGame, text) {
|
|||
let fileName = `${supportedGame.name}-install.log`;
|
||||
let fullPath = await join(dir, fileName);
|
||||
if (await fileExists(fullPath)) {
|
||||
await writeFile({contents: "", path: fullPath});
|
||||
await writeFile({ contents: "", path: fullPath });
|
||||
}
|
||||
fileName = `${supportedGame.name}-install-errors.log`;
|
||||
fullPath = await join(dir, fileName);
|
||||
if (await fileExists(fullPath)) {
|
||||
await writeFile({contents: "", path: fullPath});
|
||||
await writeFile({ contents: "", path: fullPath });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ export async function appendToInstallLog(supportedGame, text) {
|
|||
await createDir(await dirname(fullPath), { recursive: true });
|
||||
}
|
||||
contents += text;
|
||||
await writeFile({contents: contents, path: fullPath});
|
||||
await writeFile({ contents: contents, path: fullPath });
|
||||
}
|
||||
|
||||
export async function appendToInstallErrorLog(supportedGame, text) {
|
||||
|
@ -66,5 +66,5 @@ export async function appendToInstallErrorLog(supportedGame, text) {
|
|||
await createDir(await dirname(fullPath), { recursive: true });
|
||||
}
|
||||
contents += text;
|
||||
await writeFile({contents: contents, path: fullPath});
|
||||
await writeFile({ contents: contents, path: fullPath });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue