fix: check for changes for real

This commit is contained in:
TrèsAbhi authored and GitHub committed 2025-03-03 12:29:25 -06:00
1 parent 5a8435da29
commit 2a4efa8cd2
1 file changed
+1 -4
@@ -30,10 +30,7 @@ export async function commitMultipleFiles(
} else if (response.status === 200) {
const buffer = Buffer.from(await response.arrayBuffer());
// we discard blob if they're the same size; it's unlikely their
// contents will be different; I love playing russian roulette!
const equal = buffer.length === change.content.length || buffer.equals(change.content);
if (!equal) {
if (!buffer.equals(change.content)) {
const diff = change.content.length - buffer.length;
console.log(