File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1890,10 +1890,9 @@ class DocSearch {
1890
1890
await Promise . all ( [ this . getName ( entry [ field ] ) , this . getPathData ( entry [ field ] ) ] ) :
1891
1891
[ null , null ] ;
1892
1892
if ( name !== null && path !== null ) {
1893
- return { name : name , path : path } ;
1894
- } else {
1895
- return null ;
1893
+ return { name, path } ;
1896
1894
}
1895
+ return null ;
1897
1896
} ;
1898
1897
1899
1898
const [
@@ -2741,9 +2740,9 @@ class DocSearch {
2741
2740
list . push ( out . length ) ;
2742
2741
traitImplIdxMap . set ( obj . traitPath , list ) ;
2743
2742
} else {
2744
- const toRemove = traitImplIdxMap . get ( obj . fullPath ) ;
2745
- if ( toRemove ) {
2746
- removeIdxListAsc ( out , toRemove ) ;
2743
+ const toRemoveList = traitImplIdxMap . get ( obj . fullPath ) ;
2744
+ if ( toRemoveList ) {
2745
+ removeIdxListAsc ( out , toRemoveList ) ;
2747
2746
}
2748
2747
traitImplIdxMap . delete ( obj . fullPath ) ;
2749
2748
}
You can’t perform that action at this time.
0 commit comments