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 {
@@ -2735,9 +2734,9 @@ class DocSearch {
2735
2734
list . push ( out . length ) ;
2736
2735
traitImplIdxMap . set ( obj . traitPath , list ) ;
2737
2736
} else {
2738
- const toRemove = traitImplIdxMap . get ( obj . fullPath ) ;
2739
- if ( toRemove ) {
2740
- removeIdxListAsc ( out , toRemove ) ;
2737
+ const toRemoveList = traitImplIdxMap . get ( obj . fullPath ) ;
2738
+ if ( toRemoveList ) {
2739
+ removeIdxListAsc ( out , toRemoveList ) ;
2741
2740
}
2742
2741
traitImplIdxMap . delete ( obj . fullPath ) ;
2743
2742
}
You can’t perform that action at this time.
0 commit comments