Fix perf regression with stmts (#650)

This commit is contained in:
JT 2022-01-03 07:18:48 +11:00 committed by GitHub
parent c9dcd212ba
commit 354d51a3a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 })
}