Skip to content

Commit c69d26f

Browse files
committed
Remove dead code in StderrThread::new()
1 parent 1c49fd2 commit c69d26f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/child.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,14 +354,10 @@ impl StderrThread {
354354
.lines()
355355
.map_while(Result::ok)
356356
.for_each(|line| {
357-
if !capture {
358-
info!("{line}");
359-
} else {
360-
if !output.is_empty() {
361-
output.push('\n');
362-
}
363-
output.push_str(&line);
357+
if !output.is_empty() {
358+
output.push('\n');
364359
}
360+
output.push_str(&line);
365361
});
366362
return output;
367363
}

0 commit comments

Comments
 (0)