Skip to content

Commit 6cb1081

Browse files
committed
rustdoc-search: remove pointless branch from getFunctionData
It's not needed, because the serializer always includes it.
1 parent 8ca6716 commit 6cb1081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/js/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ class DocSearch {
16611661

16621662
return {
16631663
functionSignature: await parser.next(),
1664-
paramNames: !raw[1] || raw[1].length === 0 ? EMPTY_STRING_ARRAY : raw[1],
1664+
paramNames: raw[1],
16651665
elemCount: parser.elemCount,
16661666
};
16671667
}

0 commit comments

Comments
 (0)