We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb86e96 commit 238a1a7Copy full SHA for 238a1a7
packages/cursorless-engine/src/core/hatStats.test.ts
@@ -216,6 +216,8 @@ suite("hatStats", () => {
216
s += describeDistribution("nPenalty0", nPenalty0) + "\n";
217
s += describeDistribution("nPenalty1", nPenalty1) + "\n";
218
s += describeDistribution("nPenalty2", nPenalty2) + "\n";
219
+ // replace multiple trailing newlines with just one to placate pre-commit
220
+ s = s.replace(/\n+$/, "\n");
221
fs.writeFileSync(filepath + ".stats", s);
222
});
223
@@ -370,5 +372,7 @@ function goldenHatFile(
370
372
}
371
373
out += "\n";
374
375
376
+ out = out.replace(/\n+$/, "\n");
377
return out;
378
0 commit comments