mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 18:03:51 +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(),
|
"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"),
|
|
||||||
)),
|
)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user