chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-03 07:30:40 +00:00
parent 707166ae4a
commit c36a433a1f
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ function fileDiffFromPatch(file: string, patch: string) {
const input = contents ? undefined : patchInput(file, patch)
const value = contents
? fileDiffFromContent(file, contents.before, contents.after)
: (input ? parsePatchFiles(input)[0]?.files[0] : undefined) ?? emptyFileDiff(file)
: ((input ? parsePatchFiles(input)[0]?.files[0] : undefined) ?? emptyFileDiff(file))
patchFileDiffCache.set(key, value)
while (patchFileDiffCache.size > diffCacheLimit) patchFileDiffCache.delete(patchFileDiffCache.keys().next().value!)
return value