mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 00:13:21 +01: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
@ -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 New Issue
Block a user