Skip to content

Commit 34e8017

Browse files
cleanup
1 parent 56c7a22 commit 34e8017

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ export function DialogStatus() {
1818
const path = value.substring("file://".length)
1919
const parts = path.split("/")
2020
const filename = parts.pop() || path
21-
if (!filename.includes(".")) return { raw: value, name: filename }
21+
if (!filename.includes(".")) return { name: filename }
2222
const basename = filename.split(".")[0]
2323
if (basename === "index") {
2424
const dirname = parts.pop()
2525
const name = dirname || basename
26-
return { raw: value, name }
26+
return { name }
2727
}
28-
return { raw: value, name: basename }
28+
return { name: basename }
2929
}
3030
const index = value.lastIndexOf("@")
31-
if (index <= 0) return { raw: value, name: value, version: "latest" }
31+
if (index <= 0) return { name: value, version: "latest" }
3232
const name = value.substring(0, index)
3333
const version = value.substring(index + 1)
34-
return { raw: value, name, version }
34+
return { name, version }
3535
})
3636
return result.toSorted((a, b) => a.name.localeCompare(b.name))
3737
})

0 commit comments

Comments
 (0)