Skip to content

Commit bc524ee

Browse files
committed
chore: format code
1 parent 725f658 commit bc524ee

File tree

4 files changed

+537
-2394
lines changed

4 files changed

+537
-2394
lines changed

packages/opencode/src/auth/index.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ export namespace Auth {
4141

4242
export async function all(): Promise<Record<string, Info>> {
4343
const file = Bun.file(filepath)
44-
const data = await file.json().catch(() => ({} as Record<string, unknown>))
45-
return Object.entries(data).reduce((acc, [key, value]) => {
46-
const parsed = Info.safeParse(value)
47-
if (!parsed.success) return acc
48-
acc[key] = parsed.data
49-
return acc
50-
}, {} as Record<string, Info>)
44+
const data = await file.json().catch(() => ({}) as Record<string, unknown>)
45+
return Object.entries(data).reduce(
46+
(acc, [key, value]) => {
47+
const parsed = Info.safeParse(value)
48+
if (!parsed.success) return acc
49+
acc[key] = parsed.data
50+
return acc
51+
},
52+
{} as Record<string, Info>,
53+
)
5154
}
5255

5356
export async function set(key: string, info: Info) {

packages/opencode/src/cli/cmd/tui/component/dialog-theme-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { onCleanup, onMount } from "solid-js"
66
export function DialogThemeList() {
77
const theme = useTheme()
88
const options = Object.keys(theme.all())
9-
.sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' }))
9+
.sort((a, b) => a.localeCompare(b, undefined, { sensitivity: "base" }))
1010
.map((value) => ({
1111
title: value,
1212
value: value,

0 commit comments

Comments
 (0)