fix: handle first run with no previous source.jsonl
This commit is contained in:
parent
01d2f914b2
commit
06985acff3
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ function parseSource(text: string) {
|
|||
|
||||
async function diffCode() {
|
||||
if (!prevFiles.has("source.jsonl")) {
|
||||
throw new Error("Missing prevFile: source.jsonl");
|
||||
return;
|
||||
}
|
||||
|
||||
const oldCode = parseSource(new TextDecoder().decode(prevFiles.get("source.jsonl")));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue