Skip to content

Commit

Permalink
Replace console.log with process.stdout.write for Node templates
Browse files Browse the repository at this point in the history
Signed-off-by: Finnian Anderson <[email protected]>
  • Loading branch information
developius authored and alexellis committed Oct 9, 2017
1 parent 4f55e58 commit 0b5005d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/node-arm64/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ getStdin().then(val => {
if(isArray(res) || isObject(res)) {
console.log(JSON.stringify(res));
} else {
console.log(res);
process.stdout.write(res);
}
});
}).catch(e => {
Expand Down
2 changes: 1 addition & 1 deletion template/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ getStdin().then(val => {
if(isArray(res) || isObject(res)) {
console.log(JSON.stringify(res));
} else {
console.log(res);
process.stdout.write(res);
}
});
}).catch(e => {
Expand Down

0 comments on commit 0b5005d

Please sign in to comment.