Skip to content

Commit 4b3a4f9

Browse files
committed
Use outputJson instead of writeJson
1 parent c284f21 commit 4b3a4f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/ql-vscode/src/codeql-cli/distribution.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { WriteStream } from "fs";
22
import {
33
createWriteStream,
44
mkdtemp,
5+
outputJson,
56
pathExists,
67
readJson,
78
remove,
8-
writeJson,
99
} from "fs-extra";
1010
import { tmpdir } from "os";
1111
import { delimiter, dirname, join } from "path";
@@ -339,7 +339,7 @@ class ExtensionSpecificDistributionManager {
339339
};
340340

341341
// This may result in a race condition, but when this happens both processes should write the same file.
342-
await writeJson(distributionStatePath, this.distributionState);
342+
await outputJson(distributionStatePath, this.distributionState);
343343
} else {
344344
void showAndLogExceptionWithTelemetry(
345345
this.logger,
@@ -714,7 +714,7 @@ class ExtensionSpecificDistributionManager {
714714
this.distributionState = newState;
715715

716716
const distributionStatePath = this.getDistributionStatePath();
717-
await writeJson(distributionStatePath, newState);
717+
await outputJson(distributionStatePath, newState);
718718
}
719719

720720
private static readonly _currentDistributionFolderBaseName = "distribution";

0 commit comments

Comments
 (0)