mirror of
https://github.com/nushell/nushell
synced 2025-01-12 13:19:01 +00:00
Remove potential panic from path join (#10012)
Co-authored-by: amtoine <stevan.antoine@gmail.com>
This commit is contained in:
parent
7a123d3eb1
commit
35f8d8548a
1 changed files with 1 additions and 3 deletions
|
@ -73,9 +73,7 @@ the output of 'path parse' and 'path split' subcommands."#
|
|||
"Input value cannot be joined".to_string(),
|
||||
"value originates from here".into(),
|
||||
head,
|
||||
input
|
||||
.span()
|
||||
.expect("non-Empty non-ListStream PipelineData had no span"),
|
||||
input.span().unwrap_or(call.head),
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue