Skip to content

Commit 906b61d

Browse files
committed
typecheck: add nonnull around element known to exist
1 parent db92b29 commit 906b61d

File tree

1 file changed

+1
-2
lines changed
  • src/librustdoc/html/static/js

1 file changed

+1
-2
lines changed

src/librustdoc/html/static/js/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,8 +1676,7 @@ function preLoadCss(cssUrl) {
16761676
if (isHelpPage) {
16771677
const help_section = document.createElement("section");
16781678
help_section.appendChild(container);
1679-
// @ts-expect-error
1680-
document.getElementById("main-content").appendChild(help_section);
1679+
nonnull(document.getElementById("main-content")).appendChild(help_section);
16811680
} else {
16821681
onEachLazy(document.getElementsByClassName("help-menu"), menu => {
16831682
if (menu.offsetWidth !== 0) {

0 commit comments

Comments
 (0)