|
@@ -229,7 +229,7 @@ export namespace ACP {
|
|
|
const filepath = typeof metadata["filepath"] === "string" ? metadata["filepath"] : ""
|
|
const filepath = typeof metadata["filepath"] === "string" ? metadata["filepath"] : ""
|
|
|
const diff = typeof metadata["diff"] === "string" ? metadata["diff"] : ""
|
|
const diff = typeof metadata["diff"] === "string" ? metadata["diff"] : ""
|
|
|
const file = Bun.file(filepath)
|
|
const file = Bun.file(filepath)
|
|
|
- const content = await file.exists() ? await file.text() : ""
|
|
|
|
|
|
|
+ const content = (await file.exists()) ? await file.text() : ""
|
|
|
const newContent = getNewContent(content, diff)
|
|
const newContent = getNewContent(content, diff)
|
|
|
|
|
|
|
|
if (newContent) {
|
|
if (newContent) {
|