Skip to content

Commit 238a1a7

Browse files
committed
stop fighting with pre-commit
1 parent eb86e96 commit 238a1a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cursorless-engine/src/core/hatStats.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ suite("hatStats", () => {
216216
s += describeDistribution("nPenalty0", nPenalty0) + "\n";
217217
s += describeDistribution("nPenalty1", nPenalty1) + "\n";
218218
s += describeDistribution("nPenalty2", nPenalty2) + "\n";
219+
// replace multiple trailing newlines with just one to placate pre-commit
220+
s = s.replace(/\n+$/, "\n");
219221
fs.writeFileSync(filepath + ".stats", s);
220222
});
221223
});
@@ -370,5 +372,7 @@ function goldenHatFile(
370372
}
371373
out += "\n";
372374
});
375+
// replace multiple trailing newlines with just one to placate pre-commit
376+
out = out.replace(/\n+$/, "\n");
373377
return out;
374378
}

0 commit comments

Comments
 (0)