Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit d460065

Browse files
check if the stale state was due to using the data event instead of the readable event
1 parent e8ca9ed commit d460065

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/codecov

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ var args = argv.option([
2525
var listeningTime = 500;
2626
var readingPiped = false;
2727
process.stdin.setEncoding('utf8');
28-
process.stdin.on('readable', function() {
29-
var data = process.stdin.read();
30-
if (data !== null) {
28+
process.stdin.on('data', function(report) {
29+
if (report !== null) {
3130
readingPiped = true;
3231
clearTimeout(timer);
3332
if (!args.options.pipe) args.options.pipe = [];
34-
args.options.pipe.push(data);
33+
args.options.pipe.push(report);
3534
}
3635
});
3736
process.stdin.on('end', function() {

0 commit comments

Comments
 (0)