diff options
| author | Michael Howell <michael@notriddle.com> | 2025-01-29 13:11:17 -0700 | 
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2025-02-03 10:04:17 -0700 | 
| commit | 2ea95f867012e91fa742e60b7b6424abf86c05cf (patch) | |
| tree | 423eec5221aa1a81d0dac2243ae6176e83f75543 /src/librustdoc/html/static/js/search.js | |
| parent | f2c4ccd852f68fb36dedc033239cb7c0fb1921ef (diff) | |
| download | rust-2ea95f867012e91fa742e60b7b6424abf86c05cf.tar.gz rust-2ea95f867012e91fa742e60b7b6424abf86c05cf.zip | |
rustdoc: clean up a bunch of ts-expected-error declarations in main
This mostly consists of handling potentially-null input and adding more global functions to the list of globals.
Diffstat (limited to 'src/librustdoc/html/static/js/search.js')
| -rw-r--r-- | src/librustdoc/html/static/js/search.js | 2 | 
1 files changed, 0 insertions, 2 deletions
| diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index 1ad32721e06..f25f37bab59 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -4732,10 +4732,8 @@ function printTab(nb) { // Corrections only kick in on type-based searches. const correctionsElem = document.getElementsByClassName("search-corrections"); if (isTypeSearch) { - // @ts-expect-error removeClass(correctionsElem[0], "hidden"); } else { - // @ts-expect-error addClass(correctionsElem[0], "hidden"); } } else if (nb !== 0) { | 
