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