Skip to content

Commit bc5b22a

Browse files
committed
reformatted
1 parent 22ee6b6 commit bc5b22a

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

test.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ const fs = require("node:fs");
55

66
const $ = str => {
77
try {
8-
const output = child_process.execSync(str + " 2>&1", {
9-
cwd: __dirname,
10-
stdio: [
11-
0,
12-
fs.openSync('log.out', 'w'),
13-
fs.openSync('err.out', 'w')
14-
]
15-
}).toString();
8+
const output = child_process
9+
.execSync(str + " 2>&1", {
10+
cwd: __dirname,
11+
stdio: [0, fs.openSync("log.out", "w"), fs.openSync("err.out", "w")],
12+
})
13+
.toString();
1614
return output;
1715
} catch (error) {
18-
const msg = fs.readFileSync('log.out', 'utf-8');
16+
const msg = fs.readFileSync("log.out", "utf-8");
1917
return msg;
2018
}
2119
};

0 commit comments

Comments
 (0)