mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 08:53:29 +01:00
* Fix `to csv` and `to tsv` for simple list, close: #4780 * ci skip
This commit is contained in:
parent
54fc164e1c
commit
ccfa35289b
@ -110,7 +110,7 @@ pub fn merge_descriptors(values: &[Value]) -> Vec<String> {
|
||||
_ => vec!["".to_string()],
|
||||
};
|
||||
for desc in data_descriptors {
|
||||
if !seen.contains(&desc) {
|
||||
if !desc.is_empty() && !seen.contains(&desc) {
|
||||
seen.insert(desc.to_string());
|
||||
ret.push(desc.to_string());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user