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 @@ -1915,10 +1915,9 @@ class DocSearch {
1915
1915
await Promise . all ( [ this . getName ( entry [ field ] ) , this . getPathData ( entry [ field ] ) ] ) :
1916
1916
[ null , null ] ;
1917
1917
if ( name !== null && path !== null ) {
1918
- return { name : name , path : path } ;
1919
- } else {
1920
- return null ;
1918
+ return { name, path } ;
1921
1919
}
1920
+ return null ;
1922
1921
} ;
1923
1922
1924
1923
return {
@@ -2736,9 +2735,9 @@ class DocSearch {
2736
2735
list . push ( out . length ) ;
2737
2736
traitImplIdxMap . set ( obj . traitPath , list ) ;
2738
2737
} else {
2739
- const toRemove = traitImplIdxMap . get ( obj . fullPath ) ;
2740
- if ( toRemove ) {
2741
- removeIdxListAsc ( out , toRemove ) ;
2738
+ const toRemoveList = traitImplIdxMap . get ( obj . fullPath ) ;
2739
+ if ( toRemoveList ) {
2740
+ removeIdxListAsc ( out , toRemoveList ) ;
2742
2741
}
2743
2742
traitImplIdxMap . delete ( obj . fullPath ) ;
2744
2743
}
You can’t perform that action at this time.
0 commit comments