From 233c39579dbbddeea8f094367eddbfd5edb2fca9 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Mon, 13 Mar 2023 23:03:32 +0100 Subject: [PATCH] format & lint --- src/lib/components/CommandPalette.svelte | 2 +- src/lib/sessions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/CommandPalette.svelte b/src/lib/components/CommandPalette.svelte index 2e2530b27..2015fa7e1 100644 --- a/src/lib/components/CommandPalette.svelte +++ b/src/lib/components/CommandPalette.svelte @@ -279,7 +279,7 @@ paletteMode = 'branch'; if ($currentProject) { listBranches({ projectId: $currentProject.id }).then((refs) => { - let branches = []; + let branches: any[] = []; refs.forEach((b) => { branches.push({ text: b, icon: BranchIcon, command: 'switchBranch', context: b }); }); diff --git a/src/lib/sessions.ts b/src/lib/sessions.ts index c2685f2bc..996f37982 100644 --- a/src/lib/sessions.ts +++ b/src/lib/sessions.ts @@ -34,7 +34,7 @@ export const listFiles = (params: { projectId: string; sessionId: string; paths? const list = (params: { projectId: string }) => invoke('list_sessions', params); -export default async (params: { projectId: string, earliestTimestampMs?: number }) => { +export default async (params: { projectId: string; earliestTimestampMs?: number }) => { const store = writable([] as Session[]); list(params).then((sessions) => { store.set(sessions);