We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a9d4a commit 1331cb0Copy full SHA for 1331cb0
code/format-code.js
@@ -16,7 +16,7 @@ function visitor(node) {
16
case 'cpp':
17
case 'c': {
18
const child = spawnSync('clang-format', { input: node.value });
19
- if (child.stderr.toString()) {
+ if (child.stderr.length > 0) {
20
console.warn(
21
'[remark-clang-format] stderr: ',
22
child.stderr.toString(),
0 commit comments