Remove potential panic from path join (#10012)

Co-authored-by: amtoine <stevan.antoine@gmail.com>
This commit is contained in:
3lvir4 2023-08-16 09:27:36 +02:00 committed by GitHub
parent 7a123d3eb1
commit 35f8d8548a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,9 +73,7 @@ the output of 'path parse' and 'path split' subcommands."#
"Input value cannot be joined".to_string(), "Input value cannot be joined".to_string(),
"value originates from here".into(), "value originates from here".into(),
head, head,
input input.span().unwrap_or(call.head),
.span()
.expect("non-Empty non-ListStream PipelineData had no span"),
)), )),
} }
} }