Skip to content

Commit 2aed4d2

Browse files
actions-userfwang
authored andcommitted
chore: generate
1 parent e2ac588 commit 2aed4d2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ export function Autocomplete(props: {
160160

161161
props.setPrompt((draft) => {
162162
if (part.type === "file") {
163-
const existingIndex = draft.parts.findIndex(
164-
(p) => p.type === "file" && "url" in p && p.url === part.url,
165-
)
163+
const existingIndex = draft.parts.findIndex((p) => p.type === "file" && "url" in p && p.url === part.url)
166164
if (existingIndex !== -1) {
167165
const existing = draft.parts[existingIndex]
168166
if (

0 commit comments

Comments
 (0)