Skip to content

Commit cb9b796

Browse files
committed
comment: add comment for printing the data object
1 parent 6f74bf5 commit cb9b796

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ function _global_options(argv) {
6161

6262
/* Print data from process. */
6363
function _log(data) {
64+
// After using `spawn` method, it will print two newline at the end of
65+
// message (Emacs + console.log). We simply remove 1 newline at the end
66+
// to prevent printing 2 newlines from one data.
6467
console.log(data.toString().replace(/\n$/, ''));
6568
}
6669

0 commit comments

Comments
 (0)