Skip to content

Commit b06113d

Browse files
committed
scrape-examples.js: add another nonnull() invokation
1 parent 8799d3d commit b06113d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/js/scrape-examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
* @param {boolean} isHidden
128128
*/
129129
function setupLoc(example, isHidden) {
130-
const locs_str = example.attributes.getNamedItem("data-locs").textContent;
130+
const locs_str = nonnull(example.attributes.getNamedItem("data-locs")).textContent;
131131
const locs =
132132
JSON.parse(nonnull(nonnull(locs_str)));
133133
example.locs = locs;

0 commit comments

Comments
 (0)