mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
Fix perf regression with stmts (#650)
This commit is contained in:
parent
c9dcd212ba
commit
354d51a3a6
@ -418,6 +418,9 @@ pub fn eval_block(
|
||||
}
|
||||
|
||||
if stmt_idx < (num_stmts) - 1 {
|
||||
match input {
|
||||
PipelineData::Value(Value::Nothing { .. }, ..) => {}
|
||||
_ => {
|
||||
// Drain the input to the screen via tabular output
|
||||
let config = stack.get_config().unwrap_or_default();
|
||||
|
||||
@ -464,6 +467,8 @@ pub fn eval_block(
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
input = PipelineData::new(Span { start: 0, end: 0 })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user