Switch to double quotes and reformat codebase with Biome

This commit is contained in:
Mohamed Boudra
2026-03-21 20:22:15 +07:00
parent ab40786882
commit f6579dbeb4
805 changed files with 38132 additions and 40175 deletions
+9 -9
View File
@@ -1,23 +1,23 @@
import { getDesktopHost } from '@/desktop/host'
import { getDesktopHost } from "@/desktop/host";
export async function pickDirectory(): Promise<string | null> {
const open = getDesktopHost()?.dialog?.open
if (typeof open !== 'function') {
throw new Error('Desktop dialog open() is unavailable in this environment.')
const open = getDesktopHost()?.dialog?.open;
if (typeof open !== "function") {
throw new Error("Desktop dialog open() is unavailable in this environment.");
}
const selection = await open({
directory: true,
multiple: false,
})
});
if (selection === null) {
return null
return null;
}
if (typeof selection === 'string') {
return selection
if (typeof selection === "string") {
return selection;
}
throw new Error('Unexpected directory picker response.')
throw new Error("Unexpected directory picker response.");
}