diff --git a/src/chrome/diff.ts b/src/chrome/diff.ts index 3793477..d46dba9 100644 --- a/src/chrome/diff.ts +++ b/src/chrome/diff.ts @@ -100,20 +100,14 @@ export async function getFileDiff( if (status === 'modified') { const beforeBlob = await downloadFile( - github, - owner, - repo, - sha, - filename - ) - const before = await convert(kittycad, beforeBlob, extension) - const afterBlob = await downloadFile( github, owner, repo, parentSha, filename ) + const before = await convert(kittycad, beforeBlob, extension) + const afterBlob = await downloadFile(github, owner, repo, sha, filename) const after = await convert(kittycad, afterBlob, extension) return { before, after } }