Skip to content

Commit 7be331a

Browse files
committed
Update rescript_format.js
1 parent 0864835 commit 7be331a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rescript_format.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function main(argv, rescript_exe, bsc_exe) {
126126
);
127127
(async function () {
128128
var content = await readStdin();
129-
var fd = fs.openSync(filename, "wx", 0o600);
129+
var fd = fs.openSync(filename, "wx", 0o600); // Avoid overwriting existing file
130130
fs.writeFileSync(fd, content, "utf8");
131131
fs.closeSync(fd);
132132
process.addListener("exit", () => fs.unlinkSync(filename));

0 commit comments

Comments
 (0)