Skip to content

Commit 4a2d6df

Browse files
committed
typecheck: add nonnull around element known to exist
1 parent cb572cb commit 4a2d6df

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
@@ -1679,8 +1679,7 @@ function preLoadCss(cssUrl) {
16791679
if (isHelpPage) {
16801680
const help_section = document.createElement("section");
16811681
help_section.appendChild(container);
1682-
// @ts-expect-error
1683-
document.getElementById("main-content").appendChild(help_section);
1682+
nonnull(document.getElementById("main-content")).appendChild(help_section);
16841683
} else {
16851684
onEachLazy(document.getElementsByClassName("help-menu"), menu => {
16861685
if (menu.offsetWidth !== 0) {

0 commit comments

Comments
 (0)