revert temp val

This commit is contained in:
jacremer 2021-10-09 22:43:50 -07:00
parent beb15dcc77
commit 0b35905ce9

View file

@ -64,8 +64,8 @@ impl Command for SubCommand {
fn split_chars(call: &Call, input: Value) -> Result<nu_protocol::Value, nu_protocol::ShellError> {
let span = call.head;
let temp = input.flat_map(span, move |x| split_chars_helper(&x, span));
Ok(temp)
Ok(input.flat_map(span, move |x| split_chars_helper(&x, span)))
}
fn split_chars_helper(v: &Value, name: Span) -> Vec<Value> {