Put back, fix ()-output optimization
This commit is contained in:
parent
8081096a7f
commit
6f9a460fef
2 changed files with 2 additions and 1 deletions
|
@ -170,6 +170,7 @@ impl Serialize for IndexItemFunctionType {
|
|||
_ => seq.serialize_element(&self.inputs)?,
|
||||
}
|
||||
match &self.output[..] {
|
||||
[] => {}
|
||||
[one] if one.generics.is_none() => seq.serialize_element(one)?,
|
||||
_ => seq.serialize_element(&self.output)?,
|
||||
}
|
||||
|
|
|
@ -1910,7 +1910,7 @@ function initSearch(rawSearchIndex) {
|
|||
output = buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA], lowercasePaths);
|
||||
}
|
||||
} else {
|
||||
output = null;
|
||||
output = [];
|
||||
}
|
||||
return {
|
||||
inputs, output,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue