lint: formatting

This commit is contained in:
Tyler Wilding 2022-04-16 19:09:24 -04:00
parent b8cb7ed8dc
commit 6b47611d4b
No known key found for this signature in database
GPG key ID: A89403EB356ED106

View file

@ -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 });
}