Skip to content

Commit 573768a

Browse files
authored
Merge pull request #41506 from weswigham/fix-post-LK-build
Fix post-LKG build
2 parents bfea348 + ebaa926 commit 573768a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/harnessIO.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ namespace Harness {
13811381
else {
13821382
IO.writeFile(actualFileName, encodedActual);
13831383
}
1384-
if (require && opts && opts.PrintDiff) {
1384+
if (!!require && opts && opts.PrintDiff) {
13851385
const Diff = require("diff");
13861386
const patch = Diff.createTwoFilesPatch("Expected", "Actual", expected, actual, "The current baseline", "The new version");
13871387
throw new Error(`The baseline file ${relativeFileName} has changed.${ts.ForegroundColorEscapeSequences.Grey}\n\n${patch}`);

0 commit comments

Comments
 (0)