mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
* Fix `to csv` and `to tsv` for simple list, close: #4780 * ci skip
This commit is contained in:
parent
54fc164e1c
commit
ccfa35289b
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ pub fn merge_descriptors(values: &[Value]) -> Vec<String> {
|
||||||
_ => vec!["".to_string()],
|
_ => vec!["".to_string()],
|
||||||
};
|
};
|
||||||
for desc in data_descriptors {
|
for desc in data_descriptors {
|
||||||
if !seen.contains(&desc) {
|
if !desc.is_empty() && !seen.contains(&desc) {
|
||||||
seen.insert(desc.to_string());
|
seen.insert(desc.to_string());
|
||||||
ret.push(desc.to_string());
|
ret.push(desc.to_string());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue