Skip to content

Commit

Permalink
Unset lines with no content
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Apr 18, 2019
1 parent c0b713b commit 867bfa3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ public function read(int $pipe = Process::PIPE_OUT):string {
$process->getOutput($pipe)
);

foreach($outLines as $i => $line) {
if($line === "") {
unset($outLines[$i]);
}
}

foreach($outLines as $line) {
if($pipe === Process::PIPE_ERROR) {
$output .= "[$name ERROR] $line";
Expand Down

0 comments on commit 867bfa3

Please sign in to comment.